mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Expand a buffer to reduce diffs to NetBSD.
Obtained from: NetBSD
This commit is contained in:
parent
83739a1077
commit
a63d92ee89
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98501
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user