paper bag bug: json_string_set* functions should set the length too

This commit is contained in:
Chip Salzenberg 2013-10-03 19:07:20 -07:00
parent 6ebd0bc7a6
commit a76dc45512

View File

@ -723,6 +723,7 @@ int json_string_setn_nocheck(json_t *json, const char *value, size_t len)
string = json_to_string(json);
jsonp_free(string->value);
string->value = dup;
string->length = len;
return 0;
}