Permalink
Browse files

Fixed die/warn in util.c

  • Loading branch information...
1 parent 8f4af65 commit e8cf8da2089a40fb255b8d62fe86279c1219ff60 @muennich committed Feb 3, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 util.c
View
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);

0 comments on commit e8cf8da

Please sign in to comment.