From 8553a8d63f97cfa8d64b5b2260e81f8c896a8398 Mon Sep 17 00:00:00 2001
From: nancy.liao <huihui.liao@greentest.com.cn>
Date: 周五, 23 5月 2025 18:36:03 +0800
Subject: [PATCH] 修改部分因为标准原因的报错

---
 src/library/base/string_utils.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/library/base/string_utils.h b/src/library/base/string_utils.h
index 02a679d..a8157a7 100644
--- a/src/library/base/string_utils.h
+++ b/src/library/base/string_utils.h
@@ -33,6 +33,9 @@
 // strnln_s is not well supported and strlen is marked unsafe..
 size_t mstrnlen_s(const char* szptr, size_t maxsize);
 
+// strlcpy is not a standard function but it's the safest way to copy to c strings...
+// let's provide a custom implementation
+size_t mstrlcpy(char* dst, const char* src, size_t n);
 typedef enum {
 	INI, BASE64, UNKNOWN
 } FILE_FORMAT;

--
Gitblit v1.9.1