added one byte to buffer allocation
see 875c3c34d90d2845325db2739233d9312f056785
This commit is contained in:
parent
875c3c34d9
commit
403cb396b6
@ -131,7 +131,7 @@ void writeLog(int loggerFile, char *logMessage)
|
||||
message = strdup(logMessage); //COPY
|
||||
}
|
||||
|
||||
buffer = malloc(strlen(WRITE_FORMAT) + strlen(message) + 2); //ALLOCATE
|
||||
buffer = malloc(strlen(WRITE_FORMAT) + strlen(message) + 3); //ALLOCATE
|
||||
|
||||
sprintf(buffer, WRITE_FORMATTING, tm.tm_hour, tm.tm_min, tm.tm_sec, message); //LOAD MESSAGE
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user