This commit is contained in:
Tobias Reisinger 2020-11-22 01:45:45 +01:00
parent 943dd8e0d1
commit c49ada88c3

View file

@ -71,7 +71,7 @@ logger_log(int level, const char *filename, int line, const char *func, const ch
buffer_size += strlen(func); buffer_size += strlen(func);
buffer_size += strlen(msg); buffer_size += strlen(msg);
char *buffer = malloc(sizeof(char) * (buffer_size); char *buffer = malloc(sizeof(char) * (buffer_size));
sprintf(buffer, "%s %s[%5s] %s:%d:%s " COLOR_NONE "%s", timestamp_str, color, level_str, filename, line, func, msg); sprintf(buffer, "%s %s[%5s] %s:%d:%s " COLOR_NONE "%s", timestamp_str, color, level_str, filename, line, func, msg);
// start arg va_list and find log_len // start arg va_list and find log_len