summaryrefslogtreecommitdiff
path: root/vxi11_server.c
diff options
context:
space:
mode:
authordaniel <danieruru@gmail.com>2013-01-30 13:16:17 +0900
committerdaniel <danieruru@gmail.com>2013-01-30 13:16:17 +0900
commit54394d26b686702091e584d524ad77bfbb469fd4 (patch)
tree506f3f5bcc06f0c00625802904e2168903cb01fd /vxi11_server.c
parentaf2ad8e37d852f66d499125e75fca92762463678 (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.c2
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