public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix string/tester.c typo
@ 2003-04-11 18:01 Jakub Jelinek
  2003-04-11 22:07 ` Roland McGrath
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2003-04-11 18:01 UTC (permalink / raw)
  To: Roland McGrath, Ulrich Drepper; +Cc: Glibc hackers

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix string/tester.c typo
  2003-04-11 18:01 [PATCH] Fix string/tester.c typo Jakub Jelinek
@ 2003-04-11 22:07 ` Roland McGrath
  0 siblings, 0 replies; 2+ messages in thread
From: Roland McGrath @ 2003-04-11 22:07 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: Ulrich Drepper, Glibc hackers

> Hi!
> 
> The loop is otherwise pointless...
> 
> 2003-04-11  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* string/tester.c (test_strcmp): Fix a typo.

Thanks, it's in.


Roland

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-11 22:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-11 18:01 [PATCH] Fix string/tester.c typo Jakub Jelinek
2003-04-11 22:07 ` Roland McGrath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).