Skip to content

Commit

Permalink
Still testing strncpy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chukobyte committed Dec 11, 2023
1 parent 0ac0c19 commit 3b51c5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions seika/utils/se_string_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "seika",
"version": "0.0.6",
"version": "0.0.7",
"dependencies": [
{
"name": "sdl2",
Expand Down

0 comments on commit 3b51c5a

Please sign in to comment.