Skip to contentSkip to conversation

TFTP: fix search of ':' in BootFile

PATCH New Jean-Christophe PLAGNIOL-VILLARD 1 participant 1 message Feb 24, 2008 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 TFTP: fix search of ':' in BootFile

net/tftp.c +1 -1
index 3dd2b06..ea8fea2 100644
@@ -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);
Signature · 1 line
1.5.3.7