From 86024775a57951261d01d4fa92f8b346733bb982 Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Thu, 2 Feb 2017 18:00:10 +1100 Subject: hdata/fsp: fixup lpc device node name creation snprintf() with size of a pointer rather than the buffer to which we were printing into Found by static analysis. Fixes: 690f9da985b5f40d4f87ff161d43fd6989f6495c Signed-off-by: Stewart Smith --- hdata/fsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hdata') diff --git a/hdata/fsp.c b/hdata/fsp.c index f81c8dd..656aad7 100644 --- a/hdata/fsp.c +++ b/hdata/fsp.c @@ -235,7 +235,7 @@ static struct dt_node *add_lpc_io_node(struct dt_node *parent, * serial@i3f8 - refers to offset 0x3f8 in the IO space */ - snprintf(buffer, sizeof(name), "%s@i%x", name, offset); + snprintf(buffer, sizeof(buffer), "%s@i%x", name, offset); n = dt_new(parent, buffer); assert(n); -- cgit v1.1