fix a grep bug
This commit is contained in:
parent
c0beeccb1b
commit
fc337af2b6
|
@ -26,8 +26,6 @@ grep(char *pattern, int fd)
|
|||
}
|
||||
p = q+1;
|
||||
}
|
||||
if(p == buf)
|
||||
m = 0;
|
||||
if(m > 0){
|
||||
m -= p - buf;
|
||||
memmove(buf, p, m);
|
||||
|
|
Loading…
Reference in a new issue