From: Stig Bakken Date: Wed, 16 Jun 1999 18:43:59 +0000 (+0000) Subject: MIME headers may be 512 characters long. X-Git-Tag: BEFORE_REMOVING_GC_STEP1~127 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27f1799b6809f5c05595a4f2d34bf98c2461aaa6;p=php MIME headers may be 512 characters long. --- diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index ae7b52afde..fde1497900 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -442,8 +442,8 @@ static FILE *php3_fopen_url_wrapper(const char *path, char *mode, int options, i char *scratch; unsigned char *tmp; - char tmp_line[256]; - char location[256]; + char tmp_line[513]; + char location[513]; int chptr = 0; char *tpath, *ttpath; int body = 0; @@ -769,7 +769,7 @@ static FILE *php3_fopen_url_wrapper(const char *path, char *mode, int options, i /* set up the passive connection */ SOCK_WRITE("PASV\n", *socketd); - while (SOCK_FGETS(tmp_line, 256, *socketd) && + while (SOCK_FGETS(tmp_line, sizeof(tmp_line), *socketd) && !(isdigit((int) tmp_line[0]) && isdigit((int) tmp_line[1]) && isdigit((int) tmp_line[2]) && tmp_line[3] == ' ')); @@ -930,9 +930,9 @@ static FILE *php3_fopen_url_wrapper(const char *path, char *mode, int options, i int _php3_getftpresult(int socketd) { - char tmp_line[256]; + char tmp_line[513]; - while (SOCK_FGETS(tmp_line, 256, socketd) && + while (SOCK_FGETS(tmp_line, sizeof(tmp_line), socketd) && !(isdigit((int) tmp_line[0]) && isdigit((int) tmp_line[1]) && isdigit((int) tmp_line[2]) && tmp_line[3] == ' '));