From 123424725caef248bf1981046b4985d903e537b9 Mon Sep 17 00:00:00 2001 From: Kimihiro Nonaka Date: Thu, 2 Nov 2023 10:36:51 +0900 Subject: [PATCH] Fixed an issue where is*() function argument was not cast as unsigned char. --- src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.c b/src/util.c index 50b0cb5f3..99ab12185 100644 --- a/src/util.c +++ b/src/util.c @@ -319,7 +319,7 @@ get_author_initials(const char *author) size_t pos = 0; const char *end = strchr(author, '\0'); -#define is_initial_sep(c) (isspace(c) || ispunct(c) || (c) == '@' || (c) == '-') +#define is_initial_sep(c) (isspace((unsigned char)(c)) || ispunct((unsigned char)(c)) || (c) == '@' || (c) == '-') memset(initials, 0, sizeof(initials)); while (author < end) {