diff options
author | Pierre Pronchery <pierre@freebsdfoundation.org> | 2023-08-02 16:26:43 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2023-08-03 01:09:39 +0000 |
commit | cf2fc1b0f5ce501f5a29d307294e5637e0f5aba6 (patch) | |
tree | a2a5a488a727724dbe0c40f964fd21be2bf2d2c6 /crypto/LPdir_unix.c | |
parent | b84c4564effd02dfdc047dd6cbeaf910bbb1a888 (diff) |
Diffstat (limited to 'crypto/LPdir_unix.c')
-rw-r--r-- | crypto/LPdir_unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/LPdir_unix.c b/crypto/LPdir_unix.c index bc0e924e46a7..b6dda7bce2ec 100644 --- a/crypto/LPdir_unix.c +++ b/crypto/LPdir_unix.c @@ -1,5 +1,5 @@ /* - * Copyright 2004-2022 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 2004-2023 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -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'; |