X-Git-Url: https://git.danieliu.xyz/?p=dmenu.git;a=blobdiff_plain;f=util.c;h=b0612af63c5f8a231d7420bfb518a367ea1f8afa;hp=6b703e9b8180fb32ce3e3e018a2bf0124748c797;hb=026827fd65c1163a92a984c4eae3882a6d69f8df;hpb=d14670b9959f8b3760b63dd40a70687a90312b8a diff --git a/util.c b/util.c index 6b703e9..b0612af 100644 --- a/util.c +++ b/util.c @@ -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);