aboutsummaryrefslogtreecommitdiff
path: root/hdata
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2014-11-28 17:23:32 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2014-11-28 17:23:32 +1100
commit124591c0f398341c0262ee2804c08c6f0e2dbdf6 (patch)
treee7cc9a17a0c3a6e1818264d54bbc79b61a095ec4 /hdata
parent209611863a21e335daff50a94257d0f7fd145cdc (diff)
downloadskiboot-124591c0f398341c0262ee2804c08c6f0e2dbdf6.zip
skiboot-124591c0f398341c0262ee2804c08c6f0e2dbdf6.tar.gz
skiboot-124591c0f398341c0262ee2804c08c6f0e2dbdf6.tar.bz2
Remove sprintf: there's no good reason to have this in firmware
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata')
-rw-r--r--hdata/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hdata/memory.c b/hdata/memory.c
index 36a6682..d6e87cb 100644
--- a/hdata/memory.c
+++ b/hdata/memory.c
@@ -139,7 +139,7 @@ static bool add_address_range(struct dt_node *root,
return true;
}
}
- sprintf(name, "memory@%llx", (long long)reg[0]);
+ snprintf(name, sizeof(name), "memory@%llx", (long long)reg[0]);
mem = dt_new(root, name);
dt_add_property_string(mem, "device_type", "memory");