From ee9ebb30daebf4fe178657abf9847d60f712b665 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 2 Mar 2017 16:52:08 +0100 Subject: [PATCH] stdio: Increase max string size to 512 and don't endless-loop!! --- firmware/libcommon/source/stdio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/firmware/libcommon/source/stdio.c b/firmware/libcommon/source/stdio.c index 2183c7fa..32bd617e 100644 --- a/firmware/libcommon/source/stdio.c +++ b/firmware/libcommon/source/stdio.c @@ -54,7 +54,7 @@ //------------------------------------------------------------------------------ // Maximum string size allowed (in bytes). -#define MAX_STRING_SIZE 100 +#define MAX_STRING_SIZE 512 //------------------------------------------------------------------------------ // Global Variables @@ -429,7 +429,6 @@ signed int vfprintf(FILE *pStream, const char *pFormat, va_list ap) if (vsprintf(pStr, pFormat, ap) >= MAX_STRING_SIZE) { fputs(pError, stderr); - while (1); // Increase MAX_STRING_SIZE } // Display string