stdio: Increase max string size to 512 and don't endless-loop!!

This commit is contained in:
Harald Welte
2017-03-02 16:52:08 +01:00
parent b2ad7f76a1
commit ee9ebb30da

View File

@@ -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