aboutsummaryrefslogtreecommitdiffstats
path: root/memdup.c
diff options
context:
space:
mode:
Diffstat (limited to 'memdup.c')
-rw-r--r--memdup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/memdup.c b/memdup.c
index ea85dc5..9c681e2 100644
--- a/memdup.c
+++ b/memdup.c
@@ -23,9 +23,9 @@ main(void)
void *p = libsimple_memdup(s, 5);
assert(p);
assert(p != s);
- assert(!strcmp(p, s));
+ assert(!strcmpnul(p, s));
memset(p, 0, 5);
- assert(!strcmp(s, "test"));
+ assert(!strcmpnul(s, "test"));
free(p);
return 0;
}