[U-Boot-Users] fix patch u-boot/lib_generic string.c,1.4,1.5

The patch for lib_generic/string.c:strswab() from cvs rev. 1.4 to 1.5 is a bit different than what I sent in. Attached is an update.
CHANGELOG *fix loop end test in lib_generic/string.c:strswab() Patch by Andrew Dyer, October 10, 2005
Signed-off-by: Andrew Dyer amdyer@gmail.com
Index: lib_generic/string.c =================================================================== RCS file: /home/cvsroot/Projects/u-boot/lib_generic/string.c,v retrieving revision 1.1.1.2 retrieving revision 1.3 diff -p -u -r1.1.1.2 -r1.3 --- lib_generic/string.c 4 Oct 2005 14:15:53 -0000 1.1.1.2 +++ lib_generic/string.c 4 Oct 2005 15:00:44 -0000 1.3 @@ -380,7 +380,7 @@ char *strswab(const char *s) return (NULL); }
- for (p=(char *)s, q=p+1; (*p != '\0') && (*p != '\0'); p+=2, q+=2) { + for (p=(char *)s, q=p+1; (*p != '\0') && (*q != '\0'); p+=2, q+=2) { char tmp;
tmp = *p;
-- Hardware, n.: The parts of a computer system that can be kicked.

In message c166aa9f0510041420s7d6e2d6ey521d06c82f3615c7@mail.gmail.com you wrote:
The patch for lib_generic/string.c:strswab() from cvs rev. 1.4 to 1.5 is a bit different than what I sent in. Attached is an update.
Read: it is completely broken. Mea culpa, sorry.
CHANGELOG *fix loop end test in lib_generic/string.c:strswab() Patch by Andrew Dyer, October 10, 2005
Added, thanks.
Best regards,
Wolfgang Denk
participants (2)
-
Andrew Dyer
-
Wolfgang Denk