From 714b4e092f7dfc3bdbc6ea864e85cb144b1b7277 Mon Sep 17 00:00:00 2001 From: daniel Date: Sun, 13 Jan 2013 13:46:40 +0900 Subject: Would help to actually pass the data read back out --- 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 1a2a175..118f1a7 100644 --- a/vxi11_server.c +++ b/vxi11_server.c @@ -183,7 +183,7 @@ device_read_1_svc(Device_ReadParms *argp, struct svc_req *rqstp) { else { if (globals.Registers.pending_output_message != NULL) { result.data.data_val = globals.Registers.pending_output_message; - result.data.data_len = strlen(result.data.data_val); + result.data.data_len = strlen(result.data.data_val) + 1; } else { result.data.data_val = NULL; -- cgit