From c011bf4d6bae9f635ead8598a1aba58ce6774c4e Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Thu, 18 Feb 2010 09:43:08 -0800 Subject: [PATCH] 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 --- ResourceTable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.50.0