summaryrefslogtreecommitdiff
path: root/net/tftp.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2008-02-14 08:02:12 +0100
committerWolfgang Denk <wd@denx.de>2008-02-14 23:02:52 +0100
commit38cc09c55b1d7f233789052c6fc462e5377669a9 (patch)
treeeec64d11e545557964989fa449e14f01c6aa8c12 /net/tftp.c
parent0bc9efada170096c6b273f19165e32936d330d80 (diff)
downloadu-boot-imx-38cc09c55b1d7f233789052c6fc462e5377669a9.zip
u-boot-imx-38cc09c55b1d7f233789052c6fc462e5377669a9.tar.gz
u-boot-imx-38cc09c55b1d7f233789052c6fc462e5377669a9.tar.bz2
TFTP: fix search of ':' in BootFile
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'net/tftp.c')
-rw-r--r--net/tftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tftp.c b/net/tftp.c
index 3dd2b06..ea8fea2 100644
--- a/net/tftp.c
+++ b/net/tftp.c
@@ -474,7 +474,7 @@ TftpStart (void)
printf ("*** Warning: no boot file name; using '%s'\n",
tftp_filename);
} else {
- char *p = strchr (p, ':');
+ char *p = strchr (BootFile, ':');
if (p == NULL) {
strncpy(tftp_filename, BootFile, MAX_LEN);