aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 2832f03..d24724c 100644
--- a/src/util.c
+++ b/src/util.c
@@ -32,7 +32,7 @@ aprintf(const char *fmtstr, ...)
nb = vsnprintf(NULL, 0, fmtstr, cpy);
va_end(cpy);
- if (nb <= 0) die("Invalid fmtstr!\n");
+ if (nb < 0) die("Invalid fmtstr!\n");
str = checkp(malloc(nb+1));
va_start(ap, fmtstr);