summaryrefslogtreecommitdiff
path: root/fmt-pango.c
diff options
context:
space:
mode:
Diffstat (limited to 'fmt-pango.c')
-rw-r--r--fmt-pango.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fmt-pango.c b/fmt-pango.c
index 9ae77f4..bdf1088 100644
--- a/fmt-pango.c
+++ b/fmt-pango.c
@@ -19,6 +19,7 @@
#include <alloca.h>
#include "util.h"
+#include "diag.h"
#include "fmt-pango.h"
@@ -107,8 +108,7 @@ unsigned vsfmt_pango(char *buf, const char *fmt, va_list ap)
res++;
break;
default:
- fprintf(stderr, "unrecognized format '%%%c'\n", *q);
- exit(1);
+ fatal("unrecognized format '%%%c'\n", *q);
}
p = q;
}