diff options
Diffstat (limited to 'src/ideviceinstaller.c')
| -rw-r--r-- | src/ideviceinstaller.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c index 1fc79bb..2af715e 100644 --- a/src/ideviceinstaller.c +++ b/src/ideviceinstaller.c | |||
| @@ -805,7 +805,10 @@ run_again: | |||
| 805 | /* upload developer app directory */ | 805 | /* upload developer app directory */ |
| 806 | instproxy_client_options_add(client_opts, "PackageType", "Developer", NULL); | 806 | instproxy_client_options_add(client_opts, "PackageType", "Developer", NULL); |
| 807 | 807 | ||
| 808 | asprintf(&pkgname, "%s/%s", PKG_PATH, basename(appid)); | 808 | if (asprintf(&pkgname, "%s/%s", PKG_PATH, basename(appid)) < 0) { |
| 809 | fprintf(stderr, "ERROR: Out of memory allocating pkgname!?\n"); | ||
| 810 | goto leave_cleanup; | ||
| 811 | } | ||
| 809 | 812 | ||
| 810 | printf("Uploading %s package contents... ", basename(appid)); | 813 | printf("Uploading %s package contents... ", basename(appid)); |
| 811 | afc_upload_dir(afc, appid, pkgname); | 814 | afc_upload_dir(afc, appid, pkgname); |
