Formerly arscan.c.~30~

This commit is contained in:
Roland McGrath 1993-05-03 21:03:37 +00:00
parent 481e0e7d22
commit e8c11d4e32

View file

@ -415,8 +415,14 @@ ar_name_equal (name, mem, truncated)
if (truncated)
{
#ifdef AIAMAG
/* TRUNCATED should never be set on this system. */
abort ();
#else
struct ar_hdr hdr;
return !strncmp (name, mem, sizeof (hdr.ar_name) - 1);
return !strncmp (name, mem,
sizeof (hdr.ar_name) - 1);
#endif
}
return !strcmp (name, mem);