mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-02-23 10:30:16 +00:00
Pass along the string length instead of just null-terminating
This commit is contained in:
parent
1a7b4189bf
commit
e9d2c94f93
@ -386,6 +386,7 @@ again:
|
||||
json_object *s = add_object(JSON_STRING, current, error);
|
||||
if (s != NULL) {
|
||||
s->string = val.buf;
|
||||
s->length = val.n;
|
||||
}
|
||||
|
||||
return s;
|
||||
|
Loading…
x
Reference in New Issue
Block a user