Commit Diff


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++;
 	}