[PATCH] Fix string/tester.c typo

Jakub Jelinek jakub@redhat.com
Fri Apr 11 18:01:00 GMT 2003


Hi!

The loop is otherwise pointless...

2003-04-11  Jakub Jelinek  <jakub@redhat.com>

	* string/tester.c (test_strcmp): Fix a typo.

--- libc/string/tester.c.jj	2003-01-14 10:02:34.000000000 -0500
+++ libc/string/tester.c	2003-04-11 14:00:11.000000000 -0400
@@ -89,8 +89,8 @@ test_strcmp (void)
 	  int k;
 	  for (k = 0; k < 0x3f; k++)
 	    {
-	      buf1[j] = '0' ^ (k & 4);
-	      buf2[j] = '4' ^ (k & 4);
+	      buf1[k] = '0' ^ (k & 4);
+	      buf2[k] = '4' ^ (k & 4);
 	    }
 	  buf1[i] = buf1[0x3f] = 0;
 	  buf2[j] = buf2[0x3f] = 0;

	Jakub



More information about the Libc-hacker mailing list