Fixed issue with incorrect open-mode being passed to fopen

Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
This commit is contained in:
2024-11-08 16:26:12 +02:00
parent ca8403112d
commit 0ee9771976

View File

@@ -27,7 +27,7 @@ evstring
evstring_readFile(
evstring filePath)
{
FILE* f = fopen(filePath, "r");
FILE* f = fopen(filePath, "rb");
if(f == NULL) return EV_INVALID(evstring);
fseek(f, 0, SEEK_END);