summaryrefslogtreecommitdiffstats
path: root/lib/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/buffer.c')
-rw-r--r--lib/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/buffer.c b/lib/buffer.c
index ef448bf..acb813d 100644
--- a/lib/buffer.c
+++ b/lib/buffer.c
@@ -130,7 +130,7 @@ _ul_str_escape (const char *str, char *dest, size_t *length)
default:
if ((*p < ' ') || (*p >= 0177))
{
- const char *json_hex_chars = "0123456789abcdef";
+ static const char json_hex_chars[16] = "0123456789abcdef";
*q++ = '\\';
*q++ = 'u';