summaryrefslogtreecommitdiff
path: root/lib/interface.c
diff options
context:
space:
mode:
authorPixel <Pixel>2001-05-01 23:09:44 +0000
committerPixel <Pixel>2001-05-01 23:09:44 +0000
commit61cc1439cfbd973a4b1f4e3fcf8a7139b1addcc5 (patch)
tree1daa19ffcd6bad71f5c2b154389ddf6c378b3fb6 /lib/interface.c
parente6655ec8789475353ed9274c1b7126d92b1d899b (diff)
Interface
Diffstat (limited to 'lib/interface.c')
-rw-r--r--lib/interface.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/interface.c b/lib/interface.c
index e42f6d9..c23d175 100644
--- a/lib/interface.c
+++ b/lib/interface.c
@@ -118,7 +118,12 @@ void ifloop(void) {
}
} else {
printf("%c", cread);
- buffer[position++] = cread;
+ if (buffer[position]) {
+ buffer[position++] = cread;
+ } else {
+ buffer[position++] = cread;
+ buffer[position] = 0;
+ }
}
break;
}