Skip to content

Commit

Permalink
Fixed an issue where is*() function argument was not cast as unsigned…
Browse files Browse the repository at this point in the history
… char.
  • Loading branch information
nonakap authored and koutcher committed Nov 2, 2023
1 parent ee246ab commit df07aff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit df07aff

Please sign in to comment.