From 3b51c5aaddfbdeeb87505029327f2d31ef62767d Mon Sep 17 00:00:00 2001 From: Chukobyte Date: Mon, 11 Dec 2023 01:00:29 -0500 Subject: [PATCH] Still testing strncpy. --- seika/utils/se_string_util.c | 4 ++++ vcpkg.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/seika/utils/se_string_util.c b/seika/utils/se_string_util.c index 34dac0c..7473714 100644 --- a/seika/utils/se_string_util.c +++ b/seika/utils/se_string_util.c @@ -33,7 +33,11 @@ void se_strcpy(char* destination, const char* source) { } void se_strncpy(char* destination, size_t sizeInBytes, const char* source, size_t maxCount) { +#if WIN32 strncpy_s(destination, sizeInBytes, source, maxCount); +#else + strncpy(destination, source, maxCount); +#endif } void se_strcat(char* destination, const char* source) { diff --git a/vcpkg.json b/vcpkg.json index acc856f..1d36af2 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -1,6 +1,6 @@ { "name": "seika", - "version": "0.0.6", + "version": "0.0.7", "dependencies": [ { "name": "sdl2",