From: Kenny Root Date: Thu, 18 Feb 2010 17:43:08 +0000 (-0800) Subject: Change buf size holding integer in ResourceTable X-Git-Url: https://git.saurik.com/android/aapt.git/commitdiff_plain/c011bf4d6bae9f635ead8598a1aba58ce6774c4e?ds=inline;hp=-c Change buf size holding integer in ResourceTable A 32-bit integer can be 10 characters long plus a byte for \0 at the end. Change-Id: I58040fe6e1674e78bcc6e07463ff36fb26e280f4 --- c011bf4d6bae9f635ead8598a1aba58ce6774c4e diff --git a/ResourceTable.cpp b/ResourceTable.cpp index a389bfb..0b531c2 100644 --- a/ResourceTable.cpp +++ b/ResourceTable.cpp @@ -382,7 +382,7 @@ static status_t compileAttribute(const sp& in, } attr.createIfNeeded(outTable); if (!attr.hasErrors) { - char buf[10]; + char buf[11]; sprintf(buf, "%d", l10n_required); err = outTable->addBag(attr.sourcePos, myPackage, attr16, attr.ident, String16(""), String16("^l10n"), String16(buf), NULL, NULL);