From 917b466b11f57f30917a90bfa16def384c9c2d33 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Mon, 13 Jan 2025 19:22:53 +0100 Subject: [PATCH] replacing \n with space in logger instead of null-term and breaking the string --- src/logger/lib/logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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