]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/blobdiff - tests/client.c
Minor code cleanup.
[tlsproxy/tlsproxy.git] / tests / client.c
index 9bb23f392ab2831a896dc859d5fc76b9d05c6acc..c11684d2e19bd57d7a60f422601b8aefe7386a8e 100644 (file)
@@ -235,7 +235,7 @@ static int read_http_request(FILE *client_fd, char *request, size_t length) {
         return -2;
     }
 
-    while (fgets(buffer, MAX_REQUEST_LINE, client_fd) != NULL) {
+    while (fgets(buffer, sizeof(buffer), client_fd) != NULL) {
         /* End of header. */
         if (!strcmp(buffer, "\n") || !strcmp(buffer, "\r\n")) {
             break;