diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-03-02 16:52:08 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-03-02 16:52:08 +0100 |
commit | ee9ebb30daebf4fe178657abf9847d60f712b665 (patch) | |
tree | 9cfe9e1adf62bce6c5d96ca22902da737f090b74 | |
parent | b2ad7f76a1e0722ab73c2e795d231a4a557dbee6 (diff) |
stdio: Increase max string size to 512 and don't endless-loop!!
-rw-r--r-- | firmware/libcommon/source/stdio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/firmware/libcommon/source/stdio.c b/firmware/libcommon/source/stdio.c index 2183c7f..32bd617 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 |