[coreboot] libpayload: Add -Os to the CFLAGS

Uwe Hermann uwe at hermann-uwe.de
Thu Mar 20 17:26:17 CET 2008


On Thu, Mar 20, 2008 at 08:51:39AM -0600, Jordan Crouse wrote:
> >> +char *strcpy(char *d, const char *s)
> >> +{
> >> +	return strncpy(d, s, strlen(s));
> >> +}
> >
> > This doesn't put a terminating 0 on the string.
> 
> Oops - he's right.  Uwe, can you do a quick fix?

How about this? Untested, but should work.


Uwe.
-- 
http://www.hermann-uwe.de  | http://www.holsham-traders.de
http://www.crazy-hacks.org | http://www.unmaintained-free-software.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libpayload_strcpy.patch
Type: text/x-diff
Size: 449 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20080320/e2a40f40/attachment.bin>


More information about the coreboot mailing list