From 1b9576cba7650ffec967a9df3ede30183ce99b8e Mon Sep 17 00:00:00 2001 From: Fl0-0 Date: Sat, 22 Sep 2018 16:41:36 +0200 Subject: [PATCH] 8 chars fix --- client/jansson/load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/jansson/load.c b/client/jansson/load.c index 7c8805b8..b5a2a2e4 100644 --- a/client/jansson/load.c +++ b/client/jansson/load.c @@ -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;