Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed die/warn in util.c

  • Loading branch information...
commit e8cf8da2089a40fb255b8d62fe86279c1219ff60 1 parent 8f4af65
Bert Münnich authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 util.c
4 util.c
@@ -46,7 +46,7 @@ void warn(const char* fmt, ...) {
46 46
47 47 va_start(args, fmt);
48 48 fprintf(stderr, "sxiv: warning: ");
49   - fprintf(stderr, fmt, args);
  49 + vfprintf(stderr, fmt, args);
50 50 fprintf(stderr, "\n");
51 51 va_end(args);
52 52 }
@@ -59,7 +59,7 @@ void die(const char* fmt, ...) {
59 59
60 60 va_start(args, fmt);
61 61 fprintf(stderr, "sxiv: error: ");
62   - fprintf(stderr, fmt, args);
  62 + vfprintf(stderr, fmt, args);
63 63 fprintf(stderr, "\n");
64 64 va_end(args);
65 65

0 comments on commit e8cf8da

Please sign in to comment.
Something went wrong with that request. Please try again.