[U-Boot-Users] [patch] fix lib_generic version of strswab()

9 Feb
2005
9 Feb
'05
12:28 a.m.
This patch changes the behavior of strswab() to end the byte swapping when either of the two candidate bytes is null. The old behavior was to only abort when the second byte was null. It looks like this is only used for little endian machines running with CONFIG_IDE.
I noticed this because the ide serial number was not printing out - the reason was strswab() was running past the end of the previous string in memory and swapping a null into the first byte of my serial number string.
--
Hardware, n.:
The parts of a computer system that can be kicked.

25 Sep
25 Sep
4:15 p.m.
In message c166aa9f0502081528da149a4@mail.gmail.com you wrote:
This patch changes the behavior of strswab() to end the byte swapping
when either of the two candidate bytes is null. The old behavior was
Added, thanks.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Q: What do you get when you cross an ethernet with an income statement?
A: A local area networth.
7163
Age (days ago)
7392
Last active (days ago)
1 comments
2 participants
participants (2)
-
Andrew Dyer
-
Wolfgang Denk