diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ideviceinstaller.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c index 3fcea18..3780979 100644 --- a/src/ideviceinstaller.c +++ b/src/ideviceinstaller.c | |||
| @@ -32,6 +32,7 @@ | |||
| 32 | #include <errno.h> | 32 | #include <errno.h> |
| 33 | #include <time.h> | 33 | #include <time.h> |
| 34 | #include <libgen.h> | 34 | #include <libgen.h> |
| 35 | #include <inttypes.h> | ||
| 35 | 36 | ||
| 36 | #include <libimobiledevice/libimobiledevice.h> | 37 | #include <libimobiledevice/libimobiledevice.h> |
| 37 | #include <libimobiledevice/lockdown.h> | 38 | #include <libimobiledevice/lockdown.h> |
| @@ -163,7 +164,7 @@ static int zip_f_get_contents(struct zip *zf, const char *filename, int locate_f | |||
| 163 | 164 | ||
| 164 | *buffer = malloc(zs.size); | 165 | *buffer = malloc(zs.size); |
| 165 | if (zip_fread(zfile, *buffer, zs.size) != zs.size) { | 166 | if (zip_fread(zfile, *buffer, zs.size) != zs.size) { |
| 166 | fprintf(stderr, "ERROR: zip_fread %lld bytes from '%s'\n", (uint64_t)zs.size, filename); | 167 | fprintf(stderr, "ERROR: zip_fread %" PRIu64 " bytes from '%s'\n", (uint64_t)zs.size, filename); |
| 167 | free(*buffer); | 168 | free(*buffer); |
| 168 | *buffer = NULL; | 169 | *buffer = NULL; |
| 169 | zip_fclose(zfile); | 170 | zip_fclose(zfile); |
