X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/83ff05c356f6497be2475640d1cb2e3eb369831f..0f3e9cfc4b5d0f13085c975e10c0e6c4c8e5fbc3:/src/saxdb.c diff --git a/src/saxdb.c b/src/saxdb.c index 7e9b252..59b0b6d 100644 --- a/src/saxdb.c +++ b/src/saxdb.c @@ -296,7 +296,7 @@ saxdb_write_string(struct saxdb_context *dest, const char *name, const char *val void saxdb_write_int(struct saxdb_context *dest, const char *name, unsigned long value) { - unsigned char buf[16]; + char buf[16]; /* we could optimize this to take advantage of the fact that buf will never need escapes */ snprintf(buf, sizeof(buf), "%lu", value); saxdb_write_string(dest, name, buf);