From: Wolfgang Denk Date: Thu, 14 Feb 2008 23:19:21 +0100 Subject: [U-Boot-Users] [PATCH] TFTP: fix search of ':' in BootFile In-Reply-To: Your message of "Thu, 14 Feb 2008 08:02:12 +0100." <1202972532-17372-1-git-send-email-plagnioj@jcrosoft.com> Message-ID: <20080214221921.335492483C@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <1202972532-17372-1-git-send-email-plagnioj@jcrosoft.com> you wrote: > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > > 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); Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de If only God would give me some clear sign! Like making a large depo- sit in my name at a Swiss Bank. - Woody Allen