]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - net/tftp.c
Fix: TFTP is not working on little endian systems
[karo-tx-uboot.git] / net / tftp.c
index d6db91c05841a450cdd51a5360121d8e4cdbf93a..fb2f50564e9d0bda8760c3cb6cfd047d54c65c76 100644 (file)
@@ -178,7 +178,7 @@ TftpSend (void)
                pkt += strlen((char *)pkt) + 1;
                /* try for more effic. blk size */
                pkt += sprintf((char *)pkt,"blksize%c%d%c",
-                               0,htons(TftpBlkSizeOption),0);
+                               0,TftpBlkSizeOption,0);
 #ifdef CONFIG_MCAST_TFTP
                /* Check all preconditions before even trying the option */
                if (!ProhibitMcast