jansson update. 2.11 to 2.12

fix warnings
This commit is contained in:
merlokk committed 2018-11-29 12:00:23 +02:00
1 parent 91809c6d94
commit 5d5e273982
10 files changed
+194 -154

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ void jsonp_error_set_source(json_error_t *error, const char *source)
length = strlen(source);
if(length < JSON_ERROR_SOURCE_LENGTH)
strncpy(error->source, source, JSON_ERROR_SOURCE_LENGTH);
strncpy(error->source, source, length + 1);
else {
size_t extra = length - JSON_ERROR_SOURCE_LENGTH + 4;
memcpy(error->source, "...", 3);