diff options
Diffstat (limited to 'fs/9p')
-rw-r--r-- | fs/9p/v9fs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/9p/v9fs.c b/fs/9p/v9fs.c index 9b0f0222e8bb..e307fbd34fa0 100644 --- a/fs/9p/v9fs.c +++ b/fs/9p/v9fs.c | |||
@@ -125,10 +125,10 @@ static void v9fs_parse_options(struct v9fs_session_info *v9ses) | |||
125 | v9ses->afid = option; | 125 | v9ses->afid = option; |
126 | break; | 126 | break; |
127 | case Opt_uname: | 127 | case Opt_uname: |
128 | match_strcpy(v9ses->uname, &args[0]); | 128 | match_strlcpy(v9ses->uname, &args[0], PATH_MAX); |
129 | break; | 129 | break; |
130 | case Opt_remotename: | 130 | case Opt_remotename: |
131 | match_strcpy(v9ses->aname, &args[0]); | 131 | match_strlcpy(v9ses->aname, &args[0], PATH_MAX); |
132 | break; | 132 | break; |
133 | case Opt_nodevmap: | 133 | case Opt_nodevmap: |
134 | v9ses->nodev = 1; | 134 | v9ses->nodev = 1; |