]> git.saurik.com Git - android/aapt.git/commitdiff
Merge "Change buf size holding integer in ResourceTable"
authorKenny Root <kroot@google.com>
Thu, 18 Feb 2010 20:39:15 +0000 (12:39 -0800)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Thu, 18 Feb 2010 20:39:15 +0000 (12:39 -0800)
ResourceTable.cpp

index a389bfb52f61ff78cde2468195032664004f427b..0b531c228ad3b9bc9bfa8f57cf0a634bd97d962b 100644 (file)
@@ -382,7 +382,7 @@ static status_t compileAttribute(const sp<AaptFile>& 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);