Skip to content

Commit

Permalink
Remove length check on UDID argument to support newer devices
Browse files Browse the repository at this point in the history
  • Loading branch information
nikias committed Oct 1, 2018
1 parent 7010311 commit 08d5d4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/ideviceactivation.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ static void print_usage(int argc, char **argv)
printf(" state\t\t\tquery device about its activation state\n");
printf("\nThe following OPTIONS are accepted:\n");
printf(" -d, --debug\t\tenable communication debugging\n");
printf(" -u, --udid UDID\ttarget specific device by its 40-digit device UDID\n");
printf(" -u, --udid UDID\ttarget specific device by UDID\n");
printf(" -s, --service URL\tuse activation webservice at URL instead of default\n");
printf(" -v, --version\t\tprint version information and exit\n");
printf(" -h, --help\t\tprints usage information\n");
Expand Down Expand Up @@ -94,7 +94,7 @@ int main(int argc, char *argv[])
}
else if (!strcmp(argv[i], "-u") || !strcmp(argv[i], "--udid")) {
i++;
if (!argv[i] || (strlen(argv[i]) != 40)) {
if (!argv[i] || !*argv[i]) {
print_usage(argc, argv);
return EXIT_FAILURE;
}
Expand Down

0 comments on commit 08d5d4f

Please sign in to comment.