aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2020-05-23 23:18:14 +0200
committercbdev <cb@cbcdn.com>2020-05-23 23:18:14 +0200
commit013718121c768507cef62ec03afa91d715a5ef38 (patch)
tree06098f6d7e148a215b062d5dd2ddb7aadb5a0c4d
parent165fd82294090ea970e90c1b5436a5a98dc58eb9 (diff)
downloadmidimonster-013718121c768507cef62ec03afa91d715a5ef38.tar.gz
midimonster-013718121c768507cef62ec03afa91d715a5ef38.tar.bz2
midimonster-013718121c768507cef62ec03afa91d715a5ef38.zip
Allow unicode characters to pass getline on Windows
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index 11e8a70..b10740c 100644
--- a/config.c
+++ b/config.c
@@ -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;
}