fixes write_into_log_file function
This commit is contained in:
@@ -100,7 +100,10 @@ int print_log(FILE *output, enum pl_type type, const char *format_message,
|
|||||||
sprintf(uf_str, uff_str, tcolor, date_preffix, format_message);
|
sprintf(uf_str, uff_str, tcolor, date_preffix, format_message);
|
||||||
va_start(args, format_message);
|
va_start(args, format_message);
|
||||||
ret = vfprintf(output, uf_str, args);
|
ret = vfprintf(output, uf_str, args);
|
||||||
|
va_end(args);
|
||||||
|
va_start(args, format_message);
|
||||||
write_into_log_file(uf_str + strlen(tcolor), args);
|
write_into_log_file(uf_str + strlen(tcolor), args);
|
||||||
|
va_end(args);
|
||||||
free(uf_str);
|
free(uf_str);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user