mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-21 22:03:19 -07:00
8 chars fix
This commit is contained in:
parent
054cb359ca
commit
1b9576cba7
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ static void error_set(json_error_t *error, const lex_t *lex,
|
|||
if(saved_text && saved_text[0])
|
||||
{
|
||||
if(lex->saved_text.length <= 20) {
|
||||
snprintf(msg_with_context, JSON_ERROR_TEXT_LENGTH + 17,
|
||||
snprintf(msg_with_context, JSON_ERROR_TEXT_LENGTH + 8,
|
||||
"%s near '%s'", msg_text, saved_text);
|
||||
msg_with_context[JSON_ERROR_TEXT_LENGTH - 1] = '\0';
|
||||
result = msg_with_context;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue