Make printf and vprintf safe from buffer overruns
authorSonny Rao <sonnyrao@chromium.org>
Mon, 10 Oct 2011 09:22:31 +0000 (09:22 +0000)
committerWolfgang Denk <wd@denx.de>
Sat, 17 Dec 2011 22:34:43 +0000 (23:34 +0100)
commit068af6f843844319dc4d5c76020d311a69000482
tree51afa14204d64abe87a2c38747e497b2b14ef041
parent71ec92b67c1983a87a8c405d280e2dba1cc0080d
Make printf and vprintf safe from buffer overruns

From: Sonny Rao <sonnyrao@chromium.org>

utilize the added vscnprintf functions to avoid buffer overruns
The implementation is fairly dumb in that it doesn't detect
that the buffer is too small, but at least will not cause crashes.

Signed-off-by: Sonny Rao <sonnyrao@chromium.org>
common/console.c