bsdgrep(1): Evict character sequence that moved in
Reported by: trasz
This commit is contained in:
parent
46033610ec
commit
d1a920b48f
@ -113,7 +113,7 @@ grep_fgetln(struct file *f, struct parsec *pc)
|
||||
return (bufpos);
|
||||
}
|
||||
|
||||
/* Look for a newline in the remaining part of the [6rbuffer */
|
||||
/* Look for a newline in the remaining part of the buffer */
|
||||
if ((p = memchr(bufpos, fileeol, bufrem)) != NULL) {
|
||||
++p; /* advance over newline */
|
||||
ret = bufpos;
|
||||
|
Loading…
Reference in New Issue
Block a user