mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
stdio: Increase max string size to 512 and don't endless-loop!!
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user