projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
document distributed with 4.1BSD
[unix-history]
/
usr
/
src
/
usr.bin
/
ex
/
ex_tagio.c
diff --git
a/usr/src/usr.bin/ex/ex_tagio.c
b/usr/src/usr.bin/ex/ex_tagio.c
index
aa01d91
..
d47df8a
100644
(file)
--- a/
usr/src/usr.bin/ex/ex_tagio.c
+++ b/
usr/src/usr.bin/ex/ex_tagio.c
@@
-9,7
+9,7
@@
#ifdef FASTTAG
#ifndef lint
#ifdef FASTTAG
#ifndef lint
-static char *sccsid = "@(#)ex_tagio.c 7.
1
%G%";
+static char *sccsid = "@(#)ex_tagio.c 7.
3 (Berkeley)
%G%";
#endif
#include <sys/file.h>
#endif
#include <sys/file.h>
@@
-78,11
+78,11
@@
int fd;
cp = ibuf + cc;
while (--cnt > 0) {
if (++cc > bcnt) {
cp = ibuf + cc;
while (--cnt > 0) {
if (++cc > bcnt) {
+ block += b_size;
if ((bcnt = read(fd, ibuf, b_size)) <= 0) {
offset = cc;
return (NULL);
}
if ((bcnt = read(fd, ibuf, b_size)) <= 0) {
offset = cc;
return (NULL);
}
- block += b_size;
cp = ibuf;
cc = 1;
}
cp = ibuf;
cc = 1;
}