diff options
Diffstat (limited to 'security')
-rw-r--r-- | security/smack/smackfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/smack/smackfs.c b/security/smack/smackfs.c index 904af3483286..8d3c2a051c7b 100644 --- a/security/smack/smackfs.c +++ b/security/smack/smackfs.c | |||
@@ -776,7 +776,7 @@ static ssize_t smk_write_netlbladdr(struct file *file, const char __user *buf, | |||
776 | struct sockaddr_in newname; | 776 | struct sockaddr_in newname; |
777 | char smack[SMK_LABELLEN]; | 777 | char smack[SMK_LABELLEN]; |
778 | char *sp; | 778 | char *sp; |
779 | char data[SMK_NETLBLADDRMAX]; | 779 | char data[SMK_NETLBLADDRMAX + 1]; |
780 | char *host = (char *)&newname.sin_addr.s_addr; | 780 | char *host = (char *)&newname.sin_addr.s_addr; |
781 | int rc; | 781 | int rc; |
782 | struct netlbl_audit audit_info; | 782 | struct netlbl_audit audit_info; |