The uniqdosname() function takes char[12] as it third argument.

Found by:	-fstack-protector
Reported by:	dougb
Tested by:	dougb, Rainer Hurling <rhurlin gwdg de>
MFC after:	3 days
This commit is contained in:
Konstantin Belousov 2008-07-04 09:40:52 +00:00
parent 6729225f36
commit 813d71de08
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180252

View File

@ -982,7 +982,7 @@ msdosfs_rename(ap)
struct componentname *tcnp = ap->a_tcnp;
struct componentname *fcnp = ap->a_fcnp;
struct denode *ip, *xp, *dp, *zp;
u_char toname[11], oldname[11];
u_char toname[12], oldname[11];
u_long from_diroffset, to_diroffset;
u_char to_count;
int doingdirectory = 0, newparent = 0;