commit | a346f5458a4d9e9ea8159a38ae5f696f19cf125b | [log] [tgz] |
---|---|---|
author | George Burgess IV <gbiv@google.com> | Wed Mar 02 13:34:44 2016 -0800 |
committer | George Burgess IV <gbiv@google.com> | Wed Mar 02 13:34:44 2016 -0800 |
tree | 379a8a2df4dca633015cfa996c41516779e9c3d6 | |
parent | b21cb13010d903e84ed34a94e87a348c891dd587 [diff] [blame] |
Cleanup uses of sprintf so we can deprecate it. Change-Id: Ic66abfb547cd5551c47e03d604e65f83c84c597f
diff --git a/libs/androidfw/Asset.cpp b/libs/androidfw/Asset.cpp index 4e14b13..2cfa666 100644 --- a/libs/androidfw/Asset.cpp +++ b/libs/androidfw/Asset.cpp
@@ -69,7 +69,7 @@ res.append(cur->getAssetSource()); off64_t size = (cur->getLength()+512)/1024; char buf[64]; - sprintf(buf, ": %dK\n", (int)size); + snprintf(buf, sizeof(buf), ": %dK\n", (int)size); res.append(buf); } cur = cur->mNext;