diff options
author | daniel <danieruru@gmail.com> | 2013-01-30 13:16:17 +0900 |
---|---|---|
committer | daniel <danieruru@gmail.com> | 2013-01-30 13:16:17 +0900 |
commit | 54394d26b686702091e584d524ad77bfbb469fd4 (patch) | |
tree | 506f3f5bcc06f0c00625802904e2168903cb01fd /vxi11_server.c | |
parent | af2ad8e37d852f66d499125e75fca92762463678 (diff) |
Data lengths sent to the server shouldn't include the terminator.
Fix up how the handle gets copied out into perl
Diffstat (limited to 'vxi11_server.c')
-rw-r--r-- | vxi11_server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vxi11_server.c b/vxi11_server.c index 144141e..398de47 100644 --- a/vxi11_server.c +++ b/vxi11_server.c @@ -482,7 +482,7 @@ device_enable_srq_1_svc(Device_EnableSrqParms *argp, struct svc_req *rqstp) { } if (argp->enable) { if (argp->handle.handle_val != NULL ) { - inthandler = g_strdup(argp->handle.handle_val); + inthandler = g_strndup(argp->handle.handle_val, argp->handle.handle_len); #ifdef DEBUG printf("Interrupt handle set to %s\n", inthandler); #endif |