From 91dfcd5a5d2cb20285504d787ee4a6135303891a Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周日, 15 5月 2016 20:01:44 +0800 Subject: [PATCH] Fix buffer overflow in SCPI_NumberToStr, SCPI_DoubleToStr and SCPI_FloatToStr --- examples/common/scpi-def.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/examples/common/scpi-def.h b/examples/common/scpi-def.h index 908f80b..f451300 100644 --- a/examples/common/scpi-def.h +++ b/examples/common/scpi-def.h @@ -13,7 +13,7 @@ extern const scpi_command_t scpi_commands[]; extern scpi_interface_t scpi_interface; extern char scpi_input_buffer[]; -extern int16_t scpi_error_queue_data[]; +extern scpi_error_t scpi_error_queue_data[]; extern scpi_t scpi_context; size_t SCPI_Write(scpi_t * context, const char * data, size_t len); -- Gitblit v1.9.1