summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fcgiwrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fcgiwrap.c b/fcgiwrap.c
index 72037c1..c4369d5 100644
--- a/fcgiwrap.c
+++ b/fcgiwrap.c
@@ -163,7 +163,7 @@ static const char * fcgi_pass_fd(struct fcgi_context *fc, int *fdp, FCGI_FILE *f
nread = read(*fdp, buf, bufsize);
if (nread > 0) {
- while (p <= buf + nread) {
+ while (p < buf + nread) {
if (*p == '\r') {
cclass = CC_CR;
} else if (*p == '\n') {