diff options
Diffstat (limited to 'source3/rpcclient/cmd_wkssvc.c')
-rw-r--r-- | source3/rpcclient/cmd_wkssvc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/rpcclient/cmd_wkssvc.c b/source3/rpcclient/cmd_wkssvc.c index 426e6690a0..23f7a88d27 100644 --- a/source3/rpcclient/cmd_wkssvc.c +++ b/source3/rpcclient/cmd_wkssvc.c @@ -45,7 +45,6 @@ void cmd_wks_query_info(struct client_info *info, int argc, char *argv[]) { uint16 nt_pipe_fnum; fstring dest_wks; - fstring tmp; WKS_INFO_100 ctr; uint32 info_level = 100; @@ -57,9 +56,9 @@ void cmd_wks_query_info(struct client_info *info, int argc, char *argv[]) fstrcat(dest_wks, info->dest_host); strupper(dest_wks); - if (next_token(NULL, tmp, NULL, sizeof(tmp))) + if (argc > 1) { - info_level = (uint32)strtol(tmp, (char**)NULL, 10); + info_level = (uint32)strtol(argv[1], (char**)NULL, 10); } DEBUG(4,("cmd_wks_query_info: server:%s info level: %d\n", |