diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2014-11-28 17:23:32 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2014-11-28 17:23:32 +1100 |
commit | 124591c0f398341c0262ee2804c08c6f0e2dbdf6 (patch) | |
tree | e7cc9a17a0c3a6e1818264d54bbc79b61a095ec4 /hdata | |
parent | 209611863a21e335daff50a94257d0f7fd145cdc (diff) | |
download | skiboot-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.c | 2 |
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"); |