diff options
Diffstat (limited to 'xs_json.h')
-rw-r--r-- | xs_json.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -40,7 +40,7 @@ static xs_str *_xs_json_dumps_str(xs_str *s, const char *data) if (c < 32) { char tmp[10]; - sprintf(tmp, "\\u%04x", (unsigned int) c); + snprintf(tmp, sizeof(tmp), "\\u%04x", (unsigned int) c); s = xs_str_cat(s, tmp); } else |