Browse Source

TFTP: fix search of ':' in BootFile

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Jean-Christophe PLAGNIOL-VILLARD 17 years ago
parent
commit
38cc09c55b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      net/tftp.c

+ 1 - 1
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);