mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 22:51:37 +00:00
TFTP: fix search of ':' in BootFile
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
parent
0bc9efada1
commit
38cc09c55b
1 changed files with 1 additions and 1 deletions
|
@ -474,7 +474,7 @@ TftpStart (void)
|
||||||
printf ("*** Warning: no boot file name; using '%s'\n",
|
printf ("*** Warning: no boot file name; using '%s'\n",
|
||||||
tftp_filename);
|
tftp_filename);
|
||||||
} else {
|
} else {
|
||||||
char *p = strchr (p, ':');
|
char *p = strchr (BootFile, ':');
|
||||||
|
|
||||||
if (p == NULL) {
|
if (p == NULL) {
|
||||||
strncpy(tftp_filename, BootFile, MAX_LEN);
|
strncpy(tftp_filename, BootFile, MAX_LEN);
|
||||||
|
|
Loading…
Add table
Reference in a new issue