https://git.reactos.org/?p=reactos.git;a=commitdiff;h=95466904db08f0174164bf...
commit 95466904db08f0174164bf20844343982d796d3e Author: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org AuthorDate: Sat Sep 12 17:00:42 2020 +0200 Commit: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org CommitDate: Sun Sep 13 22:50:10 2020 +0200
[CMD] SHIFT: Use _istdigit(). --- base/shell/cmd/shift.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/base/shell/cmd/shift.c b/base/shell/cmd/shift.c index e3ce5b106d9..fd2873d2541 100644 --- a/base/shell/cmd/shift.c +++ b/base/shell/cmd/shift.c @@ -65,7 +65,7 @@ INT cmd_shift (LPTSTR param) { if (*param == _T('/')) { - if (param[1] < '0' || param[1] > '9') + if (!_istdigit(param[1])) { error_invalid_switch(param[1]); return 1;