summaryrefslogtreecommitdiff
path: root/arscan.c
diff options
context:
space:
mode:
Diffstat (limited to 'arscan.c')
-rw-r--r--arscan.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/arscan.c b/arscan.c
index 9cf746b..13ae45b 100644
--- a/arscan.c
+++ b/arscan.c
@@ -600,15 +600,12 @@ ar_name_equal (name, mem, truncated)
abort ();
#else
struct ar_hdr hdr;
- return !strncmp (name, mem,
- sizeof (hdr.ar_name) -
#if !defined (__hpux) && !defined (cray)
- 1
+ return !strncmp (name, mem, sizeof(hdr.ar_name) - 1);
#else
- 2
+ return !strncmp (name, mem, sizeof(hdr.ar_name) - 2);
#endif /* !__hpux && !cray */
- );
-#endif
+#endif /* !AIAMAG */
}
#endif /* !VMS */