summaryrefslogtreecommitdiff
path: root/vxi11_server.c
diff options
context:
space:
mode:
authordaniel <danieruru@gmail.com>2013-01-13 13:46:40 +0900
committerdaniel <danieruru@gmail.com>2013-01-13 13:46:40 +0900
commit714b4e092f7dfc3bdbc6ea864e85cb144b1b7277 (patch)
treecb077b8541880c50139d13fbc8ffdce873f21176 /vxi11_server.c
parent7f2e52e8dbcda238268dd7339ba8c3dce908e252 (diff)
Would help to actually pass the data read back out
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 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;