summaryrefslogtreecommitdiff
path: root/src/include/xml/encode.c
diff options
context:
space:
mode:
authorbpc2003 <wpesfriendnva@gmail.com>2025-05-05 16:51:27 -0400
committerbpc2003 <wpesfriendnva@gmail.com>2025-05-05 16:51:27 -0400
commitb6858640ec6ca17dc746863d1e92cb2452253d7d (patch)
tree28eed53fbdbdaf0b946175905ffadaaad0760949 /src/include/xml/encode.c
parent0102df793c02c94eb48a16370610e0e28a5c3361 (diff)
Get started on XML decoder
Diffstat (limited to 'src/include/xml/encode.c')
-rw-r--r--src/include/xml/encode.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}