replacing \n with space in logger

instead of null-term and breaking the string
This commit is contained in:
Václav Šmejkal 2025-01-13 19:22:53 +01:00
parent 0fe3f47752
commit 917b466b11
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -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