X-Git-Url: https://git.xandkar.net/?p=khatus.git;a=blobdiff_plain;f=x5%2Fkhatus.c;h=293b346362268b14d51a82fd9a8dd0bb23e6d953;hp=7f4954276f20aaa9cb1f3b085b16815fd90f5166;hb=45f1ce6e2dbaedd30f0ceed2d8f3feb4afa157a6;hpb=af4ef80d4366025b71ff6f11fbc9bc13d64d3758 diff --git a/x5/khatus.c b/x5/khatus.c index 7f49542..293b346 100644 --- a/x5/khatus.c +++ b/x5/khatus.c @@ -255,6 +255,7 @@ read_one(Fifo *f, char *buf) total = 0; c = '\0'; b = buf + f->pos; + /* TODO: Could optimize here and only blank-out the remaining slots. */ memset(b, ' ', f->width); while ((current = read(f->fd, &c, 1)) && c != '\n' && c != '\0' && total++ < f->width) *b++ = c;