Browse Source

Fixed die/warn in util.c

master
Bert 14 years ago
parent
commit
e8cf8da208
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      util.c

+ 2
- 2
util.c View File

@@ -46,7 +46,7 @@ void warn(const char* fmt, ...) {


va_start(args, fmt); va_start(args, fmt);
fprintf(stderr, "sxiv: warning: "); fprintf(stderr, "sxiv: warning: ");
fprintf(stderr, fmt, args);
vfprintf(stderr, fmt, args);
fprintf(stderr, "\n"); fprintf(stderr, "\n");
va_end(args); va_end(args);
} }
@@ -59,7 +59,7 @@ void die(const char* fmt, ...) {


va_start(args, fmt); va_start(args, fmt);
fprintf(stderr, "sxiv: error: "); fprintf(stderr, "sxiv: error: ");
fprintf(stderr, fmt, args);
vfprintf(stderr, fmt, args);
fprintf(stderr, "\n"); fprintf(stderr, "\n");
va_end(args); va_end(args);




Loading…
Cancel
Save