Closed devinacker closed 3 years ago
https://github.com/tmbinc/bgrep/blob/master/bgrep.c#L106-L108
int bytes_read = read(fd, buf, read_chunk); if (bytes_to_read < 0)
That should be comparing bytes_read instead of bytes_to_read, right?
bytes_read
bytes_to_read
Ack. Seems like a bug.
https://github.com/tmbinc/bgrep/blob/master/bgrep.c#L106-L108
That should be comparing
bytes_read
instead ofbytes_to_read
, right?