Fix error-messages

This commit is contained in:
FRIGN
2016-08-11 21:47:57 +02:00
committed by Markus Teich
parent 072a318adb
commit b2daba3390
2 changed files with 21 additions and 19 deletions

2
util.c
View File

@ -27,6 +27,8 @@ die(const char *fmt, ...) {
if (fmt[0] && fmt[strlen(fmt)-1] == ':') {
fputc(' ', stderr);
perror(NULL);
} else {
fputc('\n', stderr);
}
exit(1);