[U-Boot-Users] [PATCH] TFTP: fix search of ':' in BootFile

Kumar Gala galak at kernel.crashing.org
Thu Feb 14 08:34:56 CET 2008


Wolfgang,

Can you pick this up as its a clear bug fix.

- k

On Feb 14, 2008, at 1:02 AM, Jean-Christophe PLAGNIOL-VILLARD wrote:

> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD  
> <plagnioj at jcrosoft.com>
>
> diff --git a/net/tftp.c b/net/tftp.c
> index 3dd2b06..ea8fea2 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);
> -- 
> 1.5.3.7
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users





More information about the U-Boot mailing list