diff options
author | Wolfgang Denk <wd@denx.de> | 2007-09-12 00:48:57 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2007-09-12 00:48:57 +0200 |
commit | f34024d4a328e6edd906456da98d2c537155c4f7 (patch) | |
tree | ffb2156471629c6c7312cf2c24a59ecf11cf06ea /net | |
parent | 38ad82da0c1180ecdeb212a8f4245e945bcc546e (diff) | |
download | u-boot-f34024d4a328e6edd906456da98d2c537155c4f7.tar.gz u-boot-f34024d4a328e6edd906456da98d2c537155c4f7.tar.xz u-boot-f34024d4a328e6edd906456da98d2c537155c4f7.zip |
Fix memory corruption problem on STX GP3 SSA Board.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/net.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -541,11 +541,11 @@ restart: case NETLOOP_SUCCESS: if (NetBootFileXferSize > 0) { - char buf[10]; + char buf[20]; printf("Bytes transferred = %ld (%lx hex)\n", NetBootFileXferSize, NetBootFileXferSize); - sprintf(buf, "%lx", NetBootFileXferSize); + sprintf(buf, "%lX", NetBootFileXferSize); setenv("filesize", buf); sprintf(buf, "%lX", (unsigned long)load_addr); |