Fixed issue with incorrect open-mode being passed to fopen
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
This commit is contained in:
@@ -27,7 +27,7 @@ evstring
|
|||||||
evstring_readFile(
|
evstring_readFile(
|
||||||
evstring filePath)
|
evstring filePath)
|
||||||
{
|
{
|
||||||
FILE* f = fopen(filePath, "r");
|
FILE* f = fopen(filePath, "rb");
|
||||||
if(f == NULL) return EV_INVALID(evstring);
|
if(f == NULL) return EV_INVALID(evstring);
|
||||||
|
|
||||||
fseek(f, 0, SEEK_END);
|
fseek(f, 0, SEEK_END);
|
||||||
|
|||||||
Reference in New Issue
Block a user