FIX: remove warning of overwriting

This commit is contained in:
iceman1001 2019-01-08 02:16:39 +01:00
parent 7271d5afc9
commit 9b7089e71f

View file

@ -48,10 +48,10 @@ void PrintAndLogEx(logLevel_t level, char *fmt, ...) {
// skip debug messages if client debugging is turned off i.e. 'DATA SETDEBUG 0'
if (g_debugMode == 0 && level == DEBUG)
return;
char prefix[20] = {0};
char buffer[MAX_PRINT_BUFFER] = {0};
char buffer2[MAX_PRINT_BUFFER] = {0};
char prefix[20] = {0};
char buffer2[MAX_PRINT_BUFFER+20] = {0};
char *token = NULL;
int size = 0;
// {NORMAL, SUCCESS, INFO, FAILED, WARNING, ERR, DEBUG}