From 3efa3b0e267540ed85c583b7c2259a93db09f276 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Tue, 1 Jun 2021 18:58:13 +0200 Subject: util.c: err() do not print colon formatted Most common-used compilers (gcc, clang) optimize this away though. --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index c43bdfc..b5874e5 100644 --- a/util.c +++ b/util.c @@ -22,7 +22,7 @@ err(int exitstatus, const char *fmt, ...) va_start(ap, fmt); vfprintf(stderr, fmt, ap); va_end(ap); - fprintf(stderr, ": "); + fputs(": ", stderr); } fprintf(stderr, "%s\n", strerror(saved_errno)); -- cgit v1.2.3