From afdcc3dc2b6819acfa3ebcce548fdf75da53c6e6 Mon Sep 17 00:00:00 2001 From: Steve French Date: Tue, 12 Jul 2011 18:24:43 +0000 Subject: [PATCH] --- yaml --- r: 254973 b: refs/heads/master c: ea1be1a3c3c4b2bbc32aeb7995e18336c8060e0e h: refs/heads/master i: 254971: 7c997cb6a18bfb97765e600f8b2b46aedaa0e3e1 v: v3 --- [refs] | 2 +- trunk/fs/cifs/connect.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index e2245784e9ae..03c42e4fd0e0 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 62411ab2fe5f002dff27417630ddf02cc40ca404 +refs/heads/master: ea1be1a3c3c4b2bbc32aeb7995e18336c8060e0e diff --git a/trunk/fs/cifs/connect.c b/trunk/fs/cifs/connect.c index dbd669cc5bc7..ccc1afa0bf3b 100644 --- a/trunk/fs/cifs/connect.c +++ b/trunk/fs/cifs/connect.c @@ -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;