Commit 6ec60a4d4a0671ffdfb34da0ee4c51d93b705f9c
Handle unknown options
%eZDamLh9XzfWLYlzhmOgMLREL5CPXGLN6F2xp1pMLZE=.sha256 %wCPUw0EpbIQecIxaFSvVZeKhu5qg6WN1o1qk4SayPmk=.sha256cel committed on 6/5/2017, 8:44:36 PM
Parent: 0462f4b3f82ed090ef34f5f0270a4feef2c15a6f
Files changed
sbotc.c | changed |
sbotc.c | ||
---|---|---|
@@ -779,9 +779,9 @@ | ||
779 | 779 … | } else if (len < 0 && errno != ENOENT) { |
780 | 780 … | err(1, "failed to read config"); |
781 | 781 … | } |
782 | 782 … | |
783 | - for (i = 1; (i + 1 < argc) && (argv[i][0] == '-'); i++) { | |
783 … | + for (i = 1; i < argc && (argv[i][0] == '-'); i++) { | |
784 | 784 … | switch (argv[i][1]) { |
785 | 785 … | case 's': host = argv[++i]; break; |
786 | 786 … | case 'k': key = argv[++i]; break; |
787 | 787 … | case 'p': port = argv[++i]; break; |
Built with git-ssb-web