summaryrefslogtreecommitdiff
path: root/arscan.c
diff options
context:
space:
mode:
Diffstat (limited to 'arscan.c')
-rw-r--r--arscan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arscan.c b/arscan.c
index 19aa8ad..0632ddb 100644
--- a/arscan.c
+++ b/arscan.c
@@ -699,9 +699,9 @@ ar_name_equal (name, mem, truncated)
#else
struct ar_hdr hdr;
#if !defined (__hpux) && !defined (cray)
- return !strncmp (name, mem, sizeof(hdr.ar_name) - 1);
+ return strneq (name, mem, sizeof(hdr.ar_name) - 1);
#else
- return !strncmp (name, mem, sizeof(hdr.ar_name) - 2);
+ return strneq (name, mem, sizeof(hdr.ar_name) - 2);
#endif /* !__hpux && !cray */
#endif /* !AIAMAG */
}