From 94c8faab9f5b7dfcf11b6a0084cf54029badb125 Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周日, 24 4月 2016 18:25:36 +0800 Subject: [PATCH] Fix tests for device dependent info, convert to strndup, fix out of bounds access --- examples/test-tcp/main.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/examples/test-tcp/main.c b/examples/test-tcp/main.c index f1971c2..bab7bf2 100644 --- a/examples/test-tcp/main.c +++ b/examples/test-tcp/main.c @@ -188,7 +188,8 @@ scpi_units_def, SCPI_IDN1, SCPI_IDN2, SCPI_IDN3, SCPI_IDN4, scpi_input_buffer, SCPI_INPUT_BUFFER_LENGTH, - scpi_error_queue_data, SCPI_ERROR_QUEUE_SIZE); + scpi_error_queue_data, SCPI_ERROR_QUEUE_SIZE, + NULL, 0); listenfd = createServer(5025); -- Gitblit v1.9.1