summaryrefslogtreecommitdiff
path: root/libvxi11client/client.c
diff options
context:
space:
mode:
authordaniel <danieruru@gmail.com>2013-01-25 22:39:58 +0900
committerdaniel <danieruru@gmail.com>2013-01-25 22:39:58 +0900
commit008d5f4b9f3cad2d5fe350fa525b8a2135b97785 (patch)
tree567cd9e4b973c48494f94947107cb89cae48f477 /libvxi11client/client.c
parent8e631ffb02708f3f9492fa4031c65fee34c12174 (diff)
String termination fix try 2
Diffstat (limited to 'libvxi11client/client.c')
-rw-r--r--libvxi11client/client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libvxi11client/client.c b/libvxi11client/client.c
index f0d9629..d9bb107 100644
--- a/libvxi11client/client.c
+++ b/libvxi11client/client.c
@@ -172,7 +172,8 @@ int main(int argc, char *argv[]) {
printf("\n");
// docmd
- if ((err = vxi11_docmd(&ctx, 0x00, false)) > 0)
+ int dataoutlen;
+ if ((err = vxi11_docmd(&ctx, NULL, 0, NULL, 0, &dataoutlen, 0x00, false)) > 0)
printf("did command, should fail!\n");
else
printf("Error calling docmd; %s\n", geterrorstring(err));