[CMD] SHIFT: Use _istdigit().

This commit is contained in:
Hermès Bélusca-Maïto 2020-09-12 17:00:42 +02:00
parent 00ce3c48fe
commit 95466904db
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -65,7 +65,7 @@ INT cmd_shift (LPTSTR param)
{ {
if (*param == _T('/')) if (*param == _T('/'))
{ {
if (param[1] < '0' || param[1] > '9') if (!_istdigit(param[1]))
{ {
error_invalid_switch(param[1]); error_invalid_switch(param[1]);
return 1; return 1;