blobmsg: blobmsg_vprintf: prefer vsnprintf
authorPetr Štetiar <ynezz@true.cz>
Tue, 14 Jan 2020 07:57:05 +0000 (08:57 +0100)
committerPetr Štetiar <ynezz@true.cz>
Mon, 20 Jan 2020 15:54:10 +0000 (16:54 +0100)
commit132ecb563da794f390209c20f94d4798839dc709
treee0f13e9e47c6567b799678bcb3230e1aab59230d
parenta2aab30fc918ca1a61ef5a11fc0bd6a4aebc6306
blobmsg: blobmsg_vprintf: prefer vsnprintf

Better safe than sorry and while at it add handling of possible
*printf() failures.

Reviewed-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
blobmsg.c