Merge tag 'gfs2-v6.3-rc3-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-block.git] / lib / vsprintf.c
index be71a03c936a314a3ed1e98072809cdcc077d1cb..426418253fd4d312554aba1c84143eb0598a5528 100644 (file)
@@ -3621,7 +3621,7 @@ int vsscanf(const char *buf, const char *fmt, va_list args)
                if (!digit
                    || (base == 16 && !isxdigit(digit))
                    || (base == 10 && !isdigit(digit))
-                   || (base == 8 && (!isdigit(digit) || digit > '7'))
+                   || (base == 8 && !isodigit(digit))
                    || (base == 0 && !isdigit(digit)))
                        break;