Explorar o código

TFTP: fix search of ':' in BootFile

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Jean-Christophe PLAGNIOL-VILLARD %!s(int64=17) %!d(string=hai) anos
pai
achega
38cc09c55b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);