]> granicus.if.org Git - php/commitdiff
MIME headers may be 512 characters long.
authorStig Bakken <ssb@php.net>
Wed, 16 Jun 1999 18:43:59 +0000 (18:43 +0000)
committerStig Bakken <ssb@php.net>
Wed, 16 Jun 1999 18:43:59 +0000 (18:43 +0000)
main/fopen_wrappers.c

index ae7b52afde79f74ef01c412a4bbe115ee270272f..fde14979008616d198c818ab74f1434f20a8f7e1 100644 (file)
@@ -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] == ' '));