Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Should probably check if args exist before checking them....

  • Loading branch information...
commit af0d999f93b5da2f07499690a7aa41f70bbcb053 1 parent 0b950cd
@Jaywalker Jaywalker authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  utilities/injectpois0n.c
View
2  utilities/injectpois0n.c
@@ -47,7 +47,7 @@ void print_progress(double progress, void* data) {
}
int main(int argc, char* argv[]) {
- if (!strcmp(argv[1],"--help") || !strcmp(argv[1],"-h")) {
+ if (argc > 1 && (!strcmp(argv[1],"--help") || !strcmp(argv[1],"-h"))) {
printf("injectpois0n\n\t-t Teather Boot\n\t-r Boot ramdisk\n\t-s Only execute iBSS payload\n\t-o Only execute iBSS payload and boot iBoot\n\nUsage: %s [-r|-s|-o]\n", argv[0]);
return 0;
}
Please sign in to comment.
Something went wrong with that request. Please try again.