]> git.saurik.com Git - android/aapt.git/commitdiff
merge from donut
authorJean-Baptiste Queru <jbq@google.com>
Thu, 3 Sep 2009 22:18:14 +0000 (15:18 -0700)
committerJean-Baptiste Queru <jbq@google.com>
Thu, 3 Sep 2009 22:19:21 +0000 (15:19 -0700)
Command.cpp
StringPool.cpp

index 5f80ade3a77e46cf5fced2ede01387993baf5b00..7e6a12cd76e62603de5844a316ff53aaa20c2ff0 100644 (file)
@@ -397,7 +397,7 @@ int doDump(Bundle* bundle)
             ResXMLTree tree;
             asset = assets.openNonAsset(resname, Asset::ACCESS_BUFFER);
             if (asset == NULL) {
-                fprintf(stderr, "ERROR: dump failed because resource %p found\n", resname);
+                fprintf(stderr, "ERROR: dump failed because resource %s found\n", resname);
                 goto bail;
             }
 
@@ -423,7 +423,7 @@ int doDump(Bundle* bundle)
             ResXMLTree tree;
             asset = assets.openNonAsset(resname, Asset::ACCESS_BUFFER);
             if (asset == NULL) {
-                fprintf(stderr, "ERROR: dump failed because resource %p found\n", resname);
+                fprintf(stderr, "ERROR: dump failed because resource %s found\n", resname);
                 goto bail;
             }
 
index 878d3b1fea7e1cd902c73fae6669c677034ef125..715170aedfebfebe39c98c5e42b1b73eb23fc94d 100644 (file)
@@ -228,7 +228,7 @@ status_t StringPool::writeStringBlock(const sp<AaptFile>& pool)
         }
         dat += (preSize+strPos)/sizeof(uint16_t);
         if (lenSize > sizeof(uint16_t)) {
-            *dat = htods(0x8000 | ((strSize>>16)&0x7ffff));
+            *dat = htods(0x8000 | ((strSize>>16)&0x7fff));
             dat++;
         }
         *dat++ = htods(strSize);