mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
jansson update. 2.11 to 2.12
fix warnings
This commit is contained in:
parent
91809c6d94
commit
5d5e273982
10 changed files with 194 additions and 154 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue