summaryrefslogtreecommitdiff
path: root/lib_generic/string.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2005-10-04 23:38:07 +0200
committerWolfgang Denk <wd@pollux.denx.de>2005-10-04 23:38:07 +0200
commite5e98edd77d7703ffe2051c7030fa7a00dbbcfc4 (patch)
tree8c53a805f9e1c2f2d15dc13248b61a2e36b45c2f /lib_generic/string.c
parent9b880bd4d86dc568221107516e6d4728c5f93a4e (diff)
downloadu-boot-imx-e5e98edd77d7703ffe2051c7030fa7a00dbbcfc4.zip
u-boot-imx-e5e98edd77d7703ffe2051c7030fa7a00dbbcfc4.tar.gz
u-boot-imx-e5e98edd77d7703ffe2051c7030fa7a00dbbcfc4.tar.bz2
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>
Diffstat (limited to 'lib_generic/string.c')
-rw-r--r--lib_generic/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib_generic/string.c b/lib_generic/string.c
index dea4d69..0e99d1b 100644
--- a/lib_generic/string.c
+++ b/lib_generic/string.c
@@ -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;