Fixed die/warn in util.c
This commit is contained in:
parent
8f4af658ae
commit
e8cf8da208
4
util.c
4
util.c
@ -46,7 +46,7 @@ void warn(const char* fmt, ...) {
|
||||
|
||||
va_start(args, fmt);
|
||||
fprintf(stderr, "sxiv: warning: ");
|
||||
fprintf(stderr, fmt, args);
|
||||
vfprintf(stderr, fmt, args);
|
||||
fprintf(stderr, "\n");
|
||||
va_end(args);
|
||||
}
|
||||
@ -59,7 +59,7 @@ void die(const char* fmt, ...) {
|
||||
|
||||
va_start(args, fmt);
|
||||
fprintf(stderr, "sxiv: error: ");
|
||||
fprintf(stderr, fmt, args);
|
||||
vfprintf(stderr, fmt, args);
|
||||
fprintf(stderr, "\n");
|
||||
va_end(args);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user