From: John Hodge Date: Mon, 21 Feb 2011 14:15:18 +0000 (+0800) Subject: Fixed dispense give erroring on 3 arguments (and succeeding on 2) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=70f78ddbda249023519f5978c633574b10f1fcd2;hp=24654ef0078320798912a273508e37f9ce921ba7;p=tpg%2Fopendispense2.git Fixed dispense give erroring on 3 arguments (and succeeding on 2) --- diff --git a/src/client/main.c b/src/client/main.c index 4d33de1..88e82a8 100644 --- a/src/client/main.c +++ b/src/client/main.c @@ -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;