Fix newline in warning_printf()

This commit is contained in:
Martin Lund 2022-06-17 09:56:16 +02:00
parent cd1e6529db
commit 4b928a54b2

View file

@ -60,6 +60,8 @@ extern char ansi_format[];
#define warning_printf(format, args...) \ #define warning_printf(format, args...) \
{ \ { \
if (print_tainted) \
putchar('\n'); \
if (option.color < 0) \ if (option.color < 0) \
fprintf (stdout, "\r[%s] Warning: " format "\r\n", current_time(), ## args); \ fprintf (stdout, "\r[%s] Warning: " format "\r\n", current_time(), ## args); \
else \ else \