aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hdata/fsp.c2
1 files changed, 1 insertions, 1 deletions
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);