diff options
Diffstat (limited to 'src/ideviceinstaller.c')
| -rw-r--r-- | src/ideviceinstaller.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c index 8f66495..f70ba25 100644 --- a/src/ideviceinstaller.c +++ b/src/ideviceinstaller.c | |||
| @@ -18,7 +18,7 @@ | |||
| 18 | * | 18 | * |
| 19 | * You should have received a copy of the GNU General Public License | 19 | * You should have received a copy of the GNU General Public License |
| 20 | * along with this program; if not, write to the Free Software | 20 | * along with this program; if not, write to the Free Software |
| 21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 | 21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 |
| 22 | * USA | 22 | * USA |
| 23 | */ | 23 | */ |
| 24 | #ifdef HAVE_CONFIG_H | 24 | #ifdef HAVE_CONFIG_H |
| @@ -374,7 +374,7 @@ static int str_is_udid(const char* str) | |||
| 374 | if (strchr(allowed, str[length]) == NULL) { | 374 | if (strchr(allowed, str[length]) == NULL) { |
| 375 | return -1; | 375 | return -1; |
| 376 | } | 376 | } |
| 377 | } | 377 | } |
| 378 | 378 | ||
| 379 | return 0; | 379 | return 0; |
| 380 | } | 380 | } |
| @@ -516,7 +516,7 @@ static void parse_opts(int argc, char **argv) | |||
| 516 | if (!options) { | 516 | if (!options) { |
| 517 | options = strdup(optarg); | 517 | options = strdup(optarg); |
| 518 | } else { | 518 | } else { |
| 519 | char *newopts = malloc(strlen(options) + strlen(optarg) + 2); | 519 | char *newopts = malloc(strlen(options) + strlen(optarg) + 2); |
| 520 | strcpy(newopts, options); | 520 | strcpy(newopts, options); |
| 521 | free(options); | 521 | free(options); |
| 522 | strcat(newopts, ","); | 522 | strcat(newopts, ","); |
| @@ -848,7 +848,7 @@ run_again: | |||
| 848 | /* open install package */ | 848 | /* open install package */ |
| 849 | int errp = 0; | 849 | int errp = 0; |
| 850 | struct zip *zf = NULL; | 850 | struct zip *zf = NULL; |
| 851 | 851 | ||
| 852 | if ((strlen(appid) > 5) && (strcmp(&appid[strlen(appid)-5], ".ipcc") == 0)) { | 852 | if ((strlen(appid) > 5) && (strcmp(&appid[strlen(appid)-5], ".ipcc") == 0)) { |
| 853 | zf = zip_open(appid, 0, &errp); | 853 | zf = zip_open(appid, 0, &errp); |
| 854 | if (!zf) { | 854 | if (!zf) { |
