Expand a buffer to reduce diffs to NetBSD.

Obtained from:	NetBSD
This commit is contained in:
Juli Mallett 2002-06-20 19:31:55 +00:00
parent 83739a1077
commit a63d92ee89
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98501

View file

@ -476,7 +476,7 @@ ArchStatMember (archive, member, hash)
Arch *ar; /* Archive descriptor */
Hash_Entry *he; /* Entry containing member's description */
struct ar_hdr arh; /* archive-member header for reading archive */
char memName[MAXPATHLEN];
char memName[MAXPATHLEN+1];
/* Current member name while hashing. */
/*
@ -758,7 +758,7 @@ ArchSVR4Entry(ar, name, size, arch)
}
(void) strncpy(name, &ar->fnametab[entry], MAXPATHLEN);
name[MAXPATHLEN - 1] = '\0';
name[MAXPATHLEN] = '\0';
return 1;
}
#endif