summaryrefslogtreecommitdiffstats
path: root/4/11.c
diff options
context:
space:
mode:
authorSadeep Madurange <smadurange@users.noreply.github.com>2021-12-22 22:48:59 +0800
committerSadeep Madurange <smadurange@users.noreply.github.com>2021-12-22 22:48:59 +0800
commit9b9572d253809aaaa891b6b006a801759790d049 (patch)
tree5c141cff176296e46f537d1095e55dcf5b710b0b /4/11.c
parent184e8656337f33654b849f00abcc6f6df3c17432 (diff)
downloadk&r-exercises-9b9572d253809aaaa891b6b006a801759790d049.tar.gz
4.11
Diffstat (limited to '4/11.c')
-rw-r--r--4/11.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/4/11.c b/4/11.c
index 301751c..bad3f0f 100644
--- a/4/11.c
+++ b/4/11.c
@@ -130,6 +130,7 @@ int getop(char s[]) {
if (pc != ' ' && pc != '\t') {
s[0] = c = pc;
+ s[1] = 0;
pc = ' ';
} else {
while ((s[0] = c = getch()) == ' ' || c == '\t')