Skip to content

Commit

Permalink
Merge pull request #3 from wesinator/patch-1
Browse files Browse the repository at this point in the history
Remove fopen mixed modes
  • Loading branch information
pyno authored Jul 12, 2018
2 parents 7492161 + 6eba8b8 commit 7bd83f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/skulfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ int read_header(pheader *header, char *path, int *slot){
FILE *disk;
int i;

if(!(disk=fopen(path,"rb+"))){
if(!(disk=fopen(path,"rb"))){
perror("fopen");
return 0;
}
Expand Down Expand Up @@ -237,7 +237,7 @@ int read_disk(unsigned char *dst, size_t size, char *path, size_t offset){

FILE *file;

if(!(file=fopen(path,"rb+"))){
if(!(file=fopen(path,"rb"))){
perror("fopen");
return 0;
}
Expand Down

0 comments on commit 7bd83f1

Please # to comment.