aboutsummaryrefslogtreecommitdiffstats
path: root/rawmemchr.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--rawmemchr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rawmemchr.c b/rawmemchr.c
index 9bc02e0..091d39f 100644
--- a/rawmemchr.c
+++ b/rawmemchr.c
@@ -18,8 +18,8 @@ libsimple_rawmemchr(const void *s_, int c)
int
main(void)
{
- assert(!strcmp(libsimple_rawmemchr("1234512345", '3'), "34512345"));
- assert(!strcmp(libsimple_rawmemchr("1234512345", '1'), "1234512345"));
+ assert(!strcmpnul(libsimple_rawmemchr("1234512345", '3'), "34512345"));
+ assert(!strcmpnul(libsimple_rawmemchr("1234512345", '1'), "1234512345"));
return 0;
}