Skip to content

Commit

Permalink
common/fs.c: use rb mode on fopen() to fix behavior on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
navi-desu authored and LizzyFleckenstein03 committed Aug 19, 2024
1 parent 1ba05ba commit 38ac8ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

char *read_file(const char *path)
{
FILE *file = fopen(path, "r");
FILE *file = fopen(path, "rb");
if (!file) {
perror("fopen");
return NULL;
Expand Down

0 comments on commit 38ac8ff

Please sign in to comment.