From a5173428bbf42060944d0a09d65fb8518ab2fa3a Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 19 Mar 2011 01:11:10 +0100 Subject: fnmatch: replace __memset and __memcmp Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/misc/fnmatch/fnmatch_loop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/misc/fnmatch/fnmatch_loop.c') diff --git a/libc/misc/fnmatch/fnmatch_loop.c b/libc/misc/fnmatch/fnmatch_loop.c index af41727c0..9ef4ea360 100644 --- a/libc/misc/fnmatch/fnmatch_loop.c +++ b/libc/misc/fnmatch/fnmatch_loop.c @@ -508,7 +508,7 @@ FCT (const CHAR *pattern, const CHAR *string, const CHAR *string_end, if (symb_table[2 * elem] == hash && (c1 == extra[symb_table[2 * elem + 1]]) - && __memcmp (str, + && memcmp (str, &extra[symb_table[2 * elem + 1] + 1], c1) == 0) @@ -729,7 +729,7 @@ FCT (const CHAR *pattern, const CHAR *string, const CHAR *string_end, if (symb_table[2 * elem] == hash && (c1 == extra[symb_table[2 * elem + 1]]) - && __memcmp (str, + && memcmp (str, &extra[symb_table[2 * elem + 1] + 1], c1) == 0) { -- cgit v1.2.3