This commit is contained in:
Dennis Eichhorn 2023-04-23 21:13:39 +02:00
commit 40fc9b5bb5
2 changed files with 4 additions and 4 deletions

View File

@ -17,11 +17,11 @@
#include <direct.h>
#include <io.h>
typedef _chdir chdir;
typedef _getcwd getcwd;
#define _chdir chdir;
#define _getcwd getcwd;
#ifdef _MSC_VER
typedef _access_s access;
#define _access_s access;
#else
#include <unistd.h>
#endif

View File

@ -47,7 +47,7 @@ namespace Utils
size_t c = 0;
while (*haystack && c < i + match * (newLength - oldLength)) {
if (strstr(haystack, needle) == haystack) {
strcpy(&result[c], replace);
strcpy(&result[c], (char *) replace);
c += newLength;
haystack += oldLength;