diff options
author | George Burgess IV <gbiv@google.com> | 2016-03-02 13:34:44 -0800 |
---|---|---|
committer | George Burgess IV <gbiv@google.com> | 2016-03-02 13:34:44 -0800 |
commit | a346f5458a4d9e9ea8159a38ae5f696f19cf125b (patch) | |
tree | 379a8a2df4dca633015cfa996c41516779e9c3d6 /libs/androidfw/Asset.cpp | |
parent | b21cb13010d903e84ed34a94e87a348c891dd587 (diff) |
Cleanup uses of sprintf so we can deprecate it.
Change-Id: Ic66abfb547cd5551c47e03d604e65f83c84c597f
Diffstat (limited to 'libs/androidfw/Asset.cpp')
-rw-r--r-- | libs/androidfw/Asset.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/androidfw/Asset.cpp b/libs/androidfw/Asset.cpp index 4e14b13dc8bd..2cfa6666e9ab 100644 --- a/libs/androidfw/Asset.cpp +++ b/libs/androidfw/Asset.cpp @@ -69,7 +69,7 @@ String8 Asset::getAssetAllocations() 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; |