Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit afe604d0 authored by Toralf Förster's avatar Toralf Förster Committed by Eric Van Hensbergen
Browse files

fs/9p: adjust sscanf parameters accordingly to the variable types

parent c9eaa447
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -147,7 +147,7 @@ static umode_t p9mode2unixmode(struct v9fs_session_info *v9ses,
		int major = -1, minor = -1;

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