Commit b7f943b6 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

* Be paranoid bout our read buffer size check

parent 566f7908
......@@ -162,7 +162,7 @@ w_read(unsigned int fd, char *ptr, size_t max_size)
/* check if we've reached the end of the buffer */
if (buf_counter[fd] == max_size)
if (buf_counter[fd] >= max_size)
if (DEBUG > 2)
logmessage("DEBUG: fd: %d reached end of buffer, aborting\n", fd);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment