diff options
-rw-r--r-- | lib/interface.c | 7 |
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; } |