Skip to content
Commit 9652c732 authored by Al Viro's avatar Al Viro
Browse files

9p: fix misuse of sscanf() in v9fs_stat2inode()



1) sscanf() return value needs to be checked, damnit
2) sscanf() is perfectly capable of checking for fixed prefix,
no need for that %13s + strncmp with constant string.
3) st->extension is a valid string; no need for voodoo with
str*cpy() there.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent b1adbdbd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment