Skip to content

Commit

Permalink
Allow unicode characters to pass getline on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cbdevnet committed May 23, 2020
1 parent 165fd82 commit 0137181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.c
Expand Up @@ -76,7 +76,7 @@ static ssize_t getline(char** line, size_t* alloc, FILE* stream){
}

//input broken
if(ferror(stream) || c < 0){
if(ferror(stream)){
return -1;
}

Expand Down

0 comments on commit 0137181

Please sign in to comment.