aboutsummaryrefslogtreecommitdiffstats
path: root/asprintf.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--asprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/asprintf.c b/asprintf.c
index 78e00ca..25bf07b 100644
--- a/asprintf.c
+++ b/asprintf.c
@@ -26,7 +26,7 @@ main(void)
assert(libsimple_asprintf(&s, "%i %X", 99999, 255) == sizeof("99999 FF") - 1);
assert(s && s != old);
- assert(!strcmp(s, "99999 FF"));
+ assert(!strcmpnul(s, "99999 FF"));
free(s);
return 0;