From b6858640ec6ca17dc746863d1e92cb2452253d7d Mon Sep 17 00:00:00 2001 From: bpc2003 Date: Mon, 5 May 2025 16:51:27 -0400 Subject: Get started on XML decoder --- src/include/xml/encode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/include/xml/encode.c') diff --git a/src/include/xml/encode.c b/src/include/xml/encode.c index b8c090d..9e76c69 100644 --- a/src/include/xml/encode.c +++ b/src/include/xml/encode.c @@ -19,7 +19,7 @@ char *encode(map_t *map, int len) for (int j = 0; j < map[i].n_attrs; ++j) { check(&str, &slen, &used, snprintf(buf, 64, " %s='%s'", - map[i].attrs[j].tag, (char *)map[i].attrs[j].payload)); + map[i].attrs[j].id, map[i].attrs[j].value)); strcat(str, buf); } } -- cgit v1.2.3