Fixed dispense give erroring on 3 arguments (and succeeding on 2)
authorJohn Hodge <[email protected]>
Mon, 21 Feb 2011 14:15:18 +0000 (22:15 +0800)
committerJohn Hodge <[email protected]>
Mon, 21 Feb 2011 14:15:18 +0000 (22:15 +0800)
src/client/main.c

index 4d33de1..88e82a8 100644 (file)
@@ -262,7 +262,7 @@ int main(int argc, char *argv[])
        // - "Here, have some money."
        if( strcmp(text_args[0], "give") == 0 )
        {
-               if( text_argc != 3 ) {
+               if( text_argc != 4 ) {
                        fprintf(stderr, "`dispense give` takes three arguments\n");
                        ShowUsage();
                        return -1;

UCC git Repository :: git.ucc.asn.au