|
@@ -3485,7 +3485,7 @@ cifs_construct_tcon(struct cifs_sb_info *cifs_sb, uid_t fsuid)
|
|
|
goto out;
|
|
|
}
|
|
|
|
|
|
- snprintf(username, MAX_USERNAME_SIZE, "krb50x%x", fsuid);
|
|
|
+ snprintf(username, sizeof(username), "krb50x%x", fsuid);
|
|
|
vol_info->username = username;
|
|
|
vol_info->local_nls = cifs_sb->local_nls;
|
|
|
vol_info->linux_uid = fsuid;
|