mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +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
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue