From a405c151df74d4d3b4d06c38feff6458bef375a9 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 19 Aug 2018 13:23:21 +0200 Subject: Add str[n]caseeq[null] and some tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- memdup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'memdup.c') 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; } -- cgit v1.2.3-70-g09d2