X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=http_recv.c;h=c7eb485a7797f282917c8c4d4b4d34889cba603b;hb=7ddeb416451e763677f1638263e26e0855d79d91;hp=2e518b2063a8c81946b27d971ad80f5fca3c070e;hpb=8f3685d67bcec78c7028eedc9ee0fcaefb3aa13f;p=paraslash.git diff --git a/http_recv.c b/http_recv.c index 2e518b20..c7eb485a 100644 --- a/http_recv.c +++ b/http_recv.c @@ -119,7 +119,7 @@ static void http_recv_post_select(struct sched *s, struct task *t) if (!FD_ISSET(phd->fd, &s->rfds)) return; if (phd->status == HTTP_SENT_GET_REQUEST) { - t->error = recv_pattern(phd->fd, HTTP_OK_MSG, MAXLINE); + t->error = recv_pattern(phd->fd, HTTP_OK_MSG, strlen(HTTP_OK_MSG)); if (t->error >= 0) { PARA_INFO_LOG("received ok msg, streaming\n"); phd->status = HTTP_STREAMING;