added space in the utf buffer to handle 3-char characters
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 30 Nov 2006 15:09:32 +0000 (15:09 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 30 Nov 2006 15:09:32 +0000 (15:09 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_0@6636 dcc99617-32d9-48b4-a31d-7c20da2025e4

OpenSRF/src/objson/json_parser.c

index 80f2b53..5ed5cd6 100644 (file)
@@ -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)