Reserve space for the trailing null byte in the srvname member of

struct smb_vc_info.

PR:		46902
This commit is contained in:
Tim J. Robbins 2003-07-27 11:36:00 +00:00
parent b28e089684
commit 93e3ed5ab1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118078

View File

@ -146,7 +146,7 @@ struct smb_vc_info {
int flags;
enum smbiod_state iodstate;
struct smb_sopt sopt;
char srvname[SMB_MAXSRVNAMELEN];
char srvname[SMB_MAXSRVNAMELEN + 1];
char vcname[128];
};