summaryrefslogtreecommitdiffstats
path: root/install.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2010-01-29 01:47:20 +0100
committerDoug Zongker <dougz@android.com>2010-01-29 01:51:00 +0100
commitaa062531aa3e740b6cf7d3690fd5310e7fdf03f2 (patch)
tree6d189c02c973650a0ad4dbb33e0d5b3504d68c60 /install.c
parentsave the recovery log from before HTC firmware updates (diff)
downloadandroid_bootable_recovery-aa062531aa3e740b6cf7d3690fd5310e7fdf03f2.tar
android_bootable_recovery-aa062531aa3e740b6cf7d3690fd5310e7fdf03f2.tar.gz
android_bootable_recovery-aa062531aa3e740b6cf7d3690fd5310e7fdf03f2.tar.bz2
android_bootable_recovery-aa062531aa3e740b6cf7d3690fd5310e7fdf03f2.tar.lz
android_bootable_recovery-aa062531aa3e740b6cf7d3690fd5310e7fdf03f2.tar.xz
android_bootable_recovery-aa062531aa3e740b6cf7d3690fd5310e7fdf03f2.tar.zst
android_bootable_recovery-aa062531aa3e740b6cf7d3690fd5310e7fdf03f2.zip
Diffstat (limited to 'install.c')
-rw-r--r--install.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/install.c b/install.c
index 7710cecf2..bb9924a24 100644
--- a/install.c
+++ b/install.c
@@ -275,7 +275,7 @@ load_keys(const char* filename, int* numKeys) {
++*numKeys;
out = realloc(out, *numKeys * sizeof(RSAPublicKey));
RSAPublicKey* key = out + (*numKeys - 1);
- if (fscanf(f, " { %i , %i , { %i",
+ if (fscanf(f, " { %i , 0x%x , { %u",
&(key->len), &(key->n0inv), &(key->n[0])) != 3) {
goto exit;
}
@@ -284,11 +284,11 @@ load_keys(const char* filename, int* numKeys) {
goto exit;
}
for (i = 1; i < key->len; ++i) {
- if (fscanf(f, " , %i", &(key->n[i])) != 1) goto exit;
+ if (fscanf(f, " , %u", &(key->n[i])) != 1) goto exit;
}
- if (fscanf(f, " } , { %i", &(key->rr[0])) != 1) goto exit;
+ if (fscanf(f, " } , { %u", &(key->rr[0])) != 1) goto exit;
for (i = 1; i < key->len; ++i) {
- if (fscanf(f, " , %i", &(key->rr[i])) != 1) goto exit;
+ if (fscanf(f, " , %u", &(key->rr[i])) != 1) goto exit;
}
fscanf(f, " } } ");