Skip to content

Commit afe604d

Browse files
toralfericvh
authored andcommitted
fs/9p: adjust sscanf parameters accordingly to the variable types
Signed-off-by: Toralf Förster <[email protected]> Signed-off-by: Eric Van Hensbergen <[email protected]>
1 parent c9eaa44 commit afe604d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/9p/vfs_inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ static umode_t p9mode2unixmode(struct v9fs_session_info *v9ses,
147147
int major = -1, minor = -1;
148148

149149
strlcpy(ext, stat->extension, sizeof(ext));
150-
sscanf(ext, "%c %u %u", &type, &major, &minor);
150+
sscanf(ext, "%c %i %i", &type, &major, &minor);
151151
switch (type) {
152152
case 'c':
153153
res |= S_IFCHR;

0 commit comments

Comments
 (0)