From mboxrd@z Thu Jan 1 00:00:00 1970 From: McMullan, Jason Date: Wed, 16 Jan 2008 15:56:40 -0500 Subject: [U-Boot-Users] [PATCH] TFTP: add host ip addr support In-Reply-To: <478E6D5A.4070807@gmail.com> References: <20080116204025.C2919242EC@gemini.denx.de> <478E6D5A.4070807@gmail.com> Message-ID: <1200517000.31842.70.camel@localhost> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This one gets my vote: #define MAX_LEN 80 static char tftp_filename[MAX_LEN]; strncpy(tftp_filename, str, MAX_LEN); tftp_filename[MAX_LEN-1] = 0; May be truncated, but never overruns. - Jason McMullan Network Appliance, Inc. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.denx.de/pipermail/u-boot/attachments/20080116/5d558cdf/attachment.pgp