summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--4/3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/4/3.c b/4/3.c
index 0dce6ce..e2f2e7c 100644
--- a/4/3.c
+++ b/4/3.c
@@ -75,7 +75,7 @@ double pop() {
}
}
-int getch() { return (buf > 0) ? buf[--bufp] : getchar(); }
+int getch() { return (bufp > 0) ? buf[--bufp] : getchar(); }
void ungetch(int c) {
if (bufp >= BUFSIZE)