diff --git a/src/logger/lib/logger.c b/src/logger/lib/logger.c index 7f42efc..ce19e35 100644 --- a/src/logger/lib/logger.c +++ b/src/logger/lib/logger.c @@ -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