]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - net/tftp.c
net: Make sure IPaddr_t is 32 bits in size
[karo-tx-uboot.git] / net / tftp.c
index 49997073872eef56dabd9a294b49f0f907e10b9f..7aa3e23c95d1aba5f79202b7a0f550fd04889754 100644 (file)
@@ -708,7 +708,7 @@ void TftpStart(enum proto_t protocol)
 
        TftpRemoteIP = NetServerIP;
        if (BootFile[0] == '\0') {
-               sprintf(default_filename, "%02lX%02lX%02lX%02lX.img",
+               sprintf(default_filename, "%02X%02X%02X%02X.img",
                        NetOurIP & 0xFF,
                        (NetOurIP >>  8) & 0xFF,
                        (NetOurIP >> 16) & 0xFF,