~ chicken-core (master) 444f6d5382834f63cbd2e53c239d082256c71795
commit 444f6d5382834f63cbd2e53c239d082256c71795
Author: Vasilij Schneidermann <mail@vasilij.de>
AuthorDate: Mon Apr 19 19:11:20 2021 +0200
Commit: Mario Domenech Goulart <mario@parenteses.org>
CommitDate: Sun May 16 19:53:28 2021 +0200
Cast the alloca result to make C++ on MinGW happy
Signed-off-by: Evan Hanson <evhan@foldling.org>
Signed-off-by: Mario Domenech Goulart <mario@parenteses.org>
diff --git a/chicken.h b/chicken.h
index 0b9c2613..7e51a38f 100644
--- a/chicken.h
+++ b/chicken.h
@@ -3523,7 +3523,7 @@ inline static int C_stat(const char *path, struct stat *buf)
goto dircheck;
if(slash && errno == ENOENT) {
- C_strlcpy((str = C_alloca(len + 1)), path, len + 1);
+ C_strlcpy((str = (char *)C_alloca(len + 1)), path, len + 1);
while(len > 1 && C_strchr("\\/", path[--len]))
str[len] = '\0';
if(stat(str, buf) == 0)
Trap