From 9b7089e71f8ce14353a7239bdedaee3b5cf08967 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 8 Jan 2019 02:16:39 +0100 Subject: [PATCH] FIX: remove warning of overwriting --- client/ui.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/ui.c b/client/ui.c index 868545833..a0151a8db 100644 --- a/client/ui.c +++ b/client/ui.c @@ -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}