summaryrefslogtreecommitdiff
path: root/net
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
parent0bc9efada170096c6b273f19165e32936d330d80 (diff)
TFTP: fix search of ':' in BootFile
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'net')
-rw-r--r--net/tftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tftp.c b/net/tftp.c
index 3dd2b06aae1..ea8fea2f7e8 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);