From aebad970d5c04f0159e42be0ae37d76c70ca19aa Mon Sep 17 00:00:00 2001 From: Ethan Roseman Date: Fri, 27 Oct 2023 17:45:42 +0900 Subject: [PATCH] fix strchr? --- dll/msvcrt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dll/msvcrt.cpp b/dll/msvcrt.cpp index 105db1c..a4409cc 100644 --- a/dll/msvcrt.cpp +++ b/dll/msvcrt.cpp @@ -107,7 +107,7 @@ static void *resolveByName(const char *name) { if (strcmp(name, "setbuf") == 0) return (void *) msvcrt::setbuf; if (strcmp(name, "_spawnvp") == 0) return (void *) msvcrt::_spawnvp; - char* (*wibo_strchr)(char* str, int c) = strchr; + const char* (*wibo_strchr)(const char* str, int c) = strchr; // 1:1 mappings with linux funcs if (strcmp(name, "exit") == 0) return (void *) exit;