diff options
author | tjr <tjr@FreeBSD.org> | 2003-07-27 11:36:00 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2003-07-27 11:36:00 +0000 |
commit | e8459951b2a704b7f18d6d9db9404746885fc410 (patch) | |
tree | fec5cb7b901a9e6680919708e2490cb7eed6b2a7 /sys/netsmb/smb_conn.h | |
parent | 5ba14c839731d32ef33fc1489bc286c786165100 (diff) | |
download | FreeBSD-src-e8459951b2a704b7f18d6d9db9404746885fc410.zip FreeBSD-src-e8459951b2a704b7f18d6d9db9404746885fc410.tar.gz |
Reserve space for the trailing null byte in the srvname member of
struct smb_vc_info.
PR: 46902
Diffstat (limited to 'sys/netsmb/smb_conn.h')
-rw-r--r-- | sys/netsmb/smb_conn.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netsmb/smb_conn.h b/sys/netsmb/smb_conn.h index 7fb48eb..70f43e1 100644 --- a/sys/netsmb/smb_conn.h +++ b/sys/netsmb/smb_conn.h @@ -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]; }; |