home
/
code
/
khatus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add optimization TODO
[khatus.git]
/
x5
/
khatus.c
diff --git
a/x5/khatus.c
b/x5/khatus.c
index
7f49542
..
293b346
100644
(file)
--- 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;
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;
memset(b, ' ', f->width);
while ((current = read(f->fd, &c, 1)) && c != '\n' && c != '\0' && total++ < f->width)
*b++ = c;
This page took
0.022777 seconds
and
4
git commands to generate.