summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 51336ff..3ba8053 100644
--- a/util.c
+++ b/util.c
@@ -262,7 +262,7 @@ static char *xgetline(void) {
}
while (true) {
- int c = getchar();
+ int c = fgetc(stdin);
if (c == '\n' || c == EOF) {
break;
}