public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6d6c4e
)
The 'ahead' mechanism was not right
author
ceriel
<none@none>
Mon, 9 Nov 1987 11:45:39 +0000
(11:45 +0000)
committer
ceriel
<none@none>
Mon, 9 Nov 1987 11:45:39 +0000
(11:45 +0000)
modules/src/read_em/read_em.c
patch
|
blob
|
history
diff --git
a/modules/src/read_em/read_em.c
b/modules/src/read_em/read_em.c
index
ec7f916
..
e7cd58d
100644
(file)
--- a/
modules/src/read_em/read_em.c
+++ b/
modules/src/read_em/read_em.c
@@
-217,7
+217,11
@@
EM_getinstr(p)
EM_error = 0;
if (ahead) {
- *p = aheads[--ahead];
+ register int i;
+
+ ahead--;
+ *p = aheads[0];
+ for (i = 0; i < ahead; i++) aheads[i] = aheads[i+1];
return 1;
}
emhead = p;