summaryrefslogtreecommitdiffstats
path: root/crypto/LPdir_unix.c
diff options
context:
space:
mode:
authorMichael Baentsch <57787676+baentsch@users.noreply.github.com>2023-06-05 13:09:29 +0200
committerTomas Mraz <tomas@openssl.org>2023-06-06 15:48:46 +0200
commit8229874476cc2955e6947cf6d3fee09e13b8c160 (patch)
tree4c3a9165da3b9c505cd6695f02126ad161930c21 /crypto/LPdir_unix.c
parent18f82df5b14b3fba078c6c5f0f4a0bb8eee6c954 (diff)
Cast the argument to unsigned char when calling isdigit()
Fixes #21123 Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21127)
Diffstat (limited to 'crypto/LPdir_unix.c')
-rw-r--r--crypto/LPdir_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/LPdir_unix.c b/crypto/LPdir_unix.c
index 5cc1186640..aa266c5979 100644
--- a/crypto/LPdir_unix.c
+++ b/crypto/LPdir_unix.c
@@ -137,7 +137,7 @@ const char *LP_find_file(LP_DIR_CTX **ctx, const char *directory)
if ((*ctx)->expect_file_generations) {
char *p = (*ctx)->entry_name + strlen((*ctx)->entry_name);
- while (p > (*ctx)->entry_name && isdigit(p[-1]))
+ while (p > (*ctx)->entry_name && isdigit((unsigned char)p[-1]))
p--;
if (p > (*ctx)->entry_name && p[-1] == ';')
p[-1] = '\0';