On Friday, September 23, 2011 13:38:51 Simon Glass wrote: > --- a/common/console.c > +++ b/common/console.c > @@ -212,7 +212,7 @@ int serial_printf(const char *fmt, ...) > /* For this to work, printbuffer must be larger than > * anything we ever want to print. > */ > - i = vsprintf(printbuffer, fmt, args); > + i = vscnprintf(printbuffer, CONFIG_SYS_PBSIZE, fmt, args);
i think sizeof(printbuffer) would be better. same goes for all the other changes here. -mike
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot