commit 2c986b8f7e0c4aa36f452ee05715a26fac32c39e from: Omar Polo date: Mon Jul 04 09:15:23 2022 UTC check for specific chars instead of using isspace(3) Reminded by naddy and stsp; it was missing a cast to unsigned char to prevent issues on archs with signed chars and was too broad anyway. While here, drop an extra check immediately after. ok stsp@ commit - 888ae65035a604f22010ff55f5499a3d137f930c commit + 2c986b8f7e0c4aa36f452ee05715a26fac32c39e blob - f12c747f214e8e4ae165a7c3b1b15212bfdfa531 blob + dbbc9b38387c388c49654f106cab82c723f3dd06 --- lib/patch.c +++ lib/patch.c @@ -415,11 +415,11 @@ linecmp(const char *a, const char *b, int *mangled) *mangled = 1; for (;;) { - while (isspace(*a)) + while (*a == '\t' || *a == ' ' || *a == '\f') a++; - while (isspace(*b)) + while (*b == '\t' || *b == ' ' || *b == '\f') b++; - if (*a == '\0' || *b == '\0' || *a != *b) + if (*a == '\0' || *a != *b) break; a++, b++; }