summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.c b/util.c
index 472faf2..c357a48 100644
--- a/util.c
+++ b/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);