summaryrefslogtreecommitdiffstats
path: root/src/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test.c')
-rw-r--r--src/test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test.c b/src/test.c
index 0f2bc55..0c8d3d8 100644
--- a/src/test.c
+++ b/src/test.c
@@ -5,7 +5,7 @@
#include <stdio.h>
#include <string.h>
-#define LIBBITVEC_ERR(rc) errx(1, "libbitvec: %s", strerror(rc))
+#define LIBBITVEC_ERR(rc) errx(1, "libbitvec: %s", rc < 0 ? strerror(-rc) : "???")
int
main(int argc, const char **argv)