From 54394d26b686702091e584d524ad77bfbb469fd4 Mon Sep 17 00:00:00 2001 From: daniel Date: Wed, 30 Jan 2013 13:16:17 +0900 Subject: Data lengths sent to the server shouldn't include the terminator. Fix up how the handle gets copied out into perl --- vxi11_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vxi11_server.c') 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 -- cgit