--- http.c.orig 2010-10-12 16:45:27.000000000 +0200 +++ http.c 2010-10-12 16:47:19.000000000 +0200 @@ -164,7 +164,7 @@ { i ++; } - strncat( conn->headers, s, MAX_QUERY ); + strncat( conn->headers, s, sizeof(conn->headers) - strlen(conn->headers) - 1 ); } #ifdef DEBUG