From bf8143c649292042de87c0cef63e6cb3c523388f Mon Sep 17 00:00:00 2001 From: nancy.liao <huihui.liao@greentest.com.cn> Date: 周四, 08 5月 2025 16:40:10 +0800 Subject: [PATCH] 修改了一些警告信息 --- libscpi/src/units.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libscpi/src/units.c b/libscpi/src/units.c index 1e64701..25ce33f 100644 --- a/libscpi/src/units.c +++ b/libscpi/src/units.c @@ -495,7 +495,7 @@ if (value->special) { if (SCPI_ChoiceToName(special, value->content.tag, &type)) { - strncpy(str, type, len); + memcpy(str, type, len); result = SCPIDEFINE_strnlen(str, len - 1); str[result] = '\0'; return result; -- Gitblit v1.9.1