summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2012-02-10 14:19:11 +0200
committerTimo Teräs <timo.teras@iki.fi>2012-02-10 14:19:53 +0200
commit073df81973907469a0e5dfb1a064201df8e05b80 (patch)
treecd57daf25e73c959c4b4250ae1f7dd967ac52389 /src
parentfe9b4a38888f82c0e4541cf31660d1e4329ac20d (diff)
downloadapk-tools-073df81973907469a0e5dfb1a064201df8e05b80.tar.gz
apk-tools-073df81973907469a0e5dfb1a064201df8e05b80.tar.bz2
apk-tools-073df81973907469a0e5dfb1a064201df8e05b80.tar.xz
apk-tools-073df81973907469a0e5dfb1a064201df8e05b80.zip
blob: fix base64 decoding after previous optimizations
Diffstat (limited to 'src')
-rw-r--r--src/blob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blob.c b/src/blob.c
index 33b0d63..0a7643d 100644
--- a/src/blob.c
+++ b/src/blob.c
@@ -534,7 +534,7 @@ int pull_b64_chunk(unsigned char *to, const unsigned char *from, int len)
unsigned char tmp[4];
int i, r = 0;
- for (i = 0; i < len; i++) {
+ for (i = 0; i < 4; i++) {
tmp[i] = b64decode[from[i]];
r |= tmp[i];
}