diff options
author | Wolfgang Denk <wd@denx.de> | 2008-12-09 01:00:24 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-12-09 01:00:24 +0100 |
commit | c645b181a9a848996d54a5e358bedabae1da566a (patch) | |
tree | a05030fe0bfc31b049a2d498e0e8090816f28352 /net/tftp.c | |
parent | 5e3ab68e9acf9edf304b8aa32ad7e005483a2c47 (diff) | |
parent | 6a86bb6c25376f0358478219fa28d7c84dd01ed0 (diff) | |
download | u-boot-imx-c645b181a9a848996d54a5e358bedabae1da566a.zip u-boot-imx-c645b181a9a848996d54a5e358bedabae1da566a.tar.gz u-boot-imx-c645b181a9a848996d54a5e358bedabae1da566a.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-net
Diffstat (limited to 'net/tftp.c')
-rw-r--r-- | net/tftp.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -499,9 +499,8 @@ TftpStart (void) strncpy(tftp_filename, BootFile, MAX_LEN); tftp_filename[MAX_LEN-1] = 0; } else { - *p++ = '\0'; TftpServerIP = string_to_ip (BootFile); - strncpy(tftp_filename, p, MAX_LEN); + strncpy(tftp_filename, p + 1, MAX_LEN); tftp_filename[MAX_LEN-1] = 0; } } |