From 22a8122dfc18fc5c314d4a51b16ac5697c15ee2a Mon Sep 17 00:00:00 2001 From: arai Date: Sat, 29 Jun 2002 04:32:41 +0000 Subject: [PATCH] * src/lhext.c: replaced bcmp() with memcmp(). * src/lha_macro.h: ditto. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@260 6a8cc165-1e22-0410-a132-eb4e3f353aba --- src/lha_macro.h | 1 + src/lhext.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lha_macro.h b/src/lha_macro.h index 96e2866..ae5c26f 100644 --- a/src/lha_macro.h +++ b/src/lha_macro.h @@ -325,6 +325,7 @@ typedef short node; # endif char *strchr (), *strrchr (); # if !HAVE_MEMCPY +# define memcmp(s1, s2, n) bcmp ((s1), (s2), (n)) # define memcpy(d, s, n) bcopy ((s), (d), (n)) # define memmove(d, s, n) bcopy ((s), (d), (n)) # endif diff --git a/src/lhext.c b/src/lhext.c index 64360c6..6542166 100644 --- a/src/lhext.c +++ b/src/lhext.c @@ -240,7 +240,7 @@ extract_one(afp, hdr) 5, hdr->method, name); return; } - if (bcmp(hdr->method, methods[method], 5) == 0) + if (memcmp(hdr->method, methods[method], 5) == 0) break; } @@ -253,7 +253,7 @@ extract_one(afp, hdr) 5, hdr->method, name); return; } - if (bcmp(hdr->method, methods[method], 5) == 0) + if (memcmp(hdr->method, methods[method], 5) == 0) break; } #endif -- 2.11.0