replacing \n with space in logger
instead of null-term and breaking the string
This commit is contained in:
parent
0fe3f47752
commit
917b466b11
@ -121,7 +121,7 @@ void why2_write_log(int loggerFile, char *logMessage)
|
||||
char *logMessageUsed = why2_strdup(logMessage);
|
||||
for (int i = 0; i < (int) strlen(logMessageUsed); i++)
|
||||
{
|
||||
if (logMessageUsed[i] == '\n') logMessageUsed[i] = '\0';
|
||||
if (logMessageUsed[i] == '\n') logMessageUsed[i] = ' ';
|
||||
}
|
||||
|
||||
//VARIABLES
|
||||
|
Loading…
x
Reference in New Issue
Block a user