[U-Boot-Users] [PATCH] TFTP: add host ip addr support

McMullan, Jason mcmullan at netapp.com
Wed Jan 16 21:56:40 CET 2008


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 


More information about the U-Boot mailing list