fix: pass value instead of pointer to isalpha (#21898)

This commit is contained in:
dundargoc
2023-01-19 11:48:49 +01:00
committed by GitHub
parent 00a976129b
commit 363d153bb9

View File

@@ -3343,7 +3343,7 @@ void maketitle(void)
(SPACE_FOR_DIR - (size_t)(buf_p - buf)), true);
#ifdef BACKSLASH_IN_FILENAME
// Avoid "c:/name" to be reduced to "c".
if (isalpha((uint8_t)buf_p) && *(buf_p + 1) == ':') {
if (isalpha((uint8_t)(*buf_p)) && *(buf_p + 1) == ':') {
buf_p += 2;
}
#endif