1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-05 08:10:15 +02:00

(STRXCASECMP_FUNCTION): Don't increment within macro argument list.

From Akim Demaille.
This commit is contained in:
Jim Meyering
1999-02-01 13:50:12 +00:00
parent ac68c4f0c9
commit ca787f30f6
+5 -2
View File
@@ -51,11 +51,14 @@ STRXCASECMP_FUNCTION (const char *s1, const char *s2 STRXCASECMP_DECLARE_N)
do
{
c1 = TOLOWER (*p1++);
c2 = TOLOWER (*p2++);
c1 = TOLOWER (*p1);
c2 = TOLOWER (*p2);
if (LENGTH_LIMIT_EXPR (--n == 0) || c1 == '\0')
break;
++p1;
++p2;
}
while (c1 == c2);