store/loader_file.c: fix char-subscripts warning.

This happens on systems that perform is* character classifictions as
array lookup, e.g. NetBSD.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/6584)
This commit is contained in:
Andy Polyakov 2018-06-24 16:43:21 +02:00
parent 1753d12374
commit fa339c69a6

View file

@ -1216,9 +1216,9 @@ static int file_name_check(OSSL_STORE_LOADER_CTX *ctx, const char *name)
* Last, check that the rest of the extension is a decimal number, at * Last, check that the rest of the extension is a decimal number, at
* least one digit long. * least one digit long.
*/ */
if (!isdigit(*p)) if (!ossl_isdigit(*p))
return 0; return 0;
while (isdigit(*p)) while (ossl_isdigit(*p))
p++; p++;
# ifdef __VMS # ifdef __VMS
@ -1227,7 +1227,7 @@ static int file_name_check(OSSL_STORE_LOADER_CTX *ctx, const char *name)
*/ */
if (*p == ';') if (*p == ';')
for (p++; *p != '\0'; p++) for (p++; *p != '\0'; p++)
if (!isdigit(*p)) if (!ossl_isdigit(*p))
break; break;
# endif # endif