
25 Mar
2004
25 Mar
'04
11:19 a.m.
Hi all,
The attached patch fix the problem in the ident_cpy() function when the next character after the identification string is not space or 0.
CHANGELOG: * Patch by Pavel Bartusek 25 Mar 2004 Fix the problem in the ident_cpy() function when the next character after the identification string is not space or 0.
Best regards
--
Pavel Bartusek pba@sysgo.com
Software Engineering
SYSGO Real-Time Solutions AG | Embedded and Real-Time Software
Lise-Meitner-Str.15
89081 Ulm, Germany
Voice: +49-731-9533-1295
FAX: +49-731-94683-10
www.sysgo.com | www.elinos.com | www.osek.de
--- u-boot-1.0.2/common/cmd_ide.c.ori Wed Mar 24 11:29:23 2004
+++ u-boot-1.0.2/common/cmd_ide.c Wed Mar 24 15:53:16 2004
@@ -1430,7 +1430,7 @@
/* copy string, omitting trailing white space */
while ((*src) && (src<end)) {
*dst++ = *src;
- if (*src++ != ' ')
+ if ((*src++ != ' ') && (src<end))
last = dst;
}
OUT: