# HG changeset patch # User Mychaela Falconia # Date 1458515266 0 # Node ID 9ced8e13cf91b898a11765aef9b23bfb97790340 # Parent 0511507bf6e733fa01fdcff815102987204aaee5 fc-shell tch-dl command implementation: brown paper bag diff -r 0511507bf6e7 -r 9ced8e13cf91 rvinterf/asyncshell/tchcmd.c --- a/rvinterf/asyncshell/tchcmd.c Sun Mar 20 22:52:25 2016 +0000 +++ b/rvinterf/asyncshell/tchcmd.c Sun Mar 20 23:07:46 2016 +0000 @@ -28,11 +28,11 @@ { int config; - if (!strcmp(argv[1], "enable") || !strcmp(argv[1], "on") || - !strcmp(argv[1], "1")) + if (!strcmp(argv[0], "enable") || !strcmp(argv[0], "on") || + !strcmp(argv[0], "1")) config = 1; - else if (!strcmp(argv[1], "disable") || !strcmp(argv[1], "off") || - !strcmp(argv[1], "0")) + else if (!strcmp(argv[0], "disable") || !strcmp(argv[0], "off") || + !strcmp(argv[0], "0")) config = 0; else { printf("error: boolean argument required\n");