From 64cd8a33078efa98b759ecf7b896b6a86064b8a7 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 30 Nov 2006 15:09:32 +0000 Subject: [PATCH] added space in the utf buffer to handle 3-char characters git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@804 9efc2488-bf62-4759-914b-345cdb29e865 --- src/objson/json_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/objson/json_parser.c b/src/objson/json_parser.c index 80f2b53..5ed5cd6 100644 --- a/src/objson/json_parser.c +++ b/src/objson/json_parser.c @@ -490,8 +490,8 @@ int json_parse_json_string(char* string, unsigned long* index, jsonObject* obj, /* ----------------------------------------------------------------------- */ /* The following chunk was borrowed with permission from json-c http://oss.metaparadigm.com/json-c/ */ - unsigned char utf_out[3]; - memset(utf_out,0,3); + unsigned char utf_out[4]; + memset(utf_out,0,4); #define hexdigit(x) ( ((x) <= '9') ? (x) - '0' : ((x) & 7) + 9) -- 2.11.0