summaryrefslogtreecommitdiffstats
path: root/tools/ota/add-property-tag.c
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-03-14 21:59:56 +0100
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-14 21:59:56 +0100
commit4b6de1ba1ce0fff95c18a8abb7ba6e5762006d49 (patch)
tree8fa1fa41069b4c6991157ac484069121caab9767 /tools/ota/add-property-tag.c
parentam a7266ef0: Merge "separate fbdev-specific code out from minui" (diff)
parentMerge "Recovery 64-bit compile issues" (diff)
downloadandroid_bootable_recovery-4b6de1ba1ce0fff95c18a8abb7ba6e5762006d49.tar
android_bootable_recovery-4b6de1ba1ce0fff95c18a8abb7ba6e5762006d49.tar.gz
android_bootable_recovery-4b6de1ba1ce0fff95c18a8abb7ba6e5762006d49.tar.bz2
android_bootable_recovery-4b6de1ba1ce0fff95c18a8abb7ba6e5762006d49.tar.lz
android_bootable_recovery-4b6de1ba1ce0fff95c18a8abb7ba6e5762006d49.tar.xz
android_bootable_recovery-4b6de1ba1ce0fff95c18a8abb7ba6e5762006d49.tar.zst
android_bootable_recovery-4b6de1ba1ce0fff95c18a8abb7ba6e5762006d49.zip
Diffstat (limited to 'tools/ota/add-property-tag.c')
-rw-r--r--tools/ota/add-property-tag.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/ota/add-property-tag.c b/tools/ota/add-property-tag.c
index 5277edd9c..aab30b2d0 100644
--- a/tools/ota/add-property-tag.c
+++ b/tools/ota/add-property-tag.c
@@ -57,9 +57,9 @@ void write_tagged(FILE *out, const char *line, const char *tag, int number) {
const char *end = line + strlen(line);
while (end > line && isspace(end[-1])) --end;
if (number > 0) {
- fprintf(out, "%.*s%s%d%s", end - line, line, tag, number, end);
+ fprintf(out, "%.*s%s%d%s", (int)(end - line), line, tag, number, end);
} else {
- fprintf(out, "%.*s%s%s", end - line, line, tag, end);
+ fprintf(out, "%.*s%s%s", (int)(end - line), line, tag, end);
}
}