Commit febb065e authored by Omar Kallel's avatar Omar Kallel
Browse files

Fix logs issue

parent 356970ff
Pipeline #19837 passed with stages
in 3 minutes and 16 seconds
......@@ -139,7 +139,8 @@ void puts_log(int severity, const char *fmt, ...)
i += vsprintf(buf + i, (const char *)fmt, args);
if (enable_log_file) {
strncpy(buf_file, buf, strlen(buf));
strcat(buf_file, "\n");
buf_file[strlen(buf)] = '\n';
buf_file[strlen(buf) + 1] = '\0';
fputs(buf_file, pLog);
}
va_end(args);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment