home
/
code
/
khatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af4ef80
)
Add optimization TODO
author
Siraaj Khandkar
<siraaj@khandkar.net>
Tue, 10 Mar 2020 13:44:04 +0000
(09:44 -0400)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Tue, 10 Mar 2020 13:44:04 +0000
(09:44 -0400)
x5/khatus.c
patch
|
blob
|
blame
|
history
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;
+ /* 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;
This page took
0.028453 seconds
and
4
git commands to generate.