summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>1999-06-16 18:43:59 +0000
committerStig Bakken <ssb@php.net>1999-06-16 18:43:59 +0000
commit27f1799b6809f5c05595a4f2d34bf98c2461aaa6 (patch)
tree1f39628d01fa0e877739fd49b1e16d65581674f0 /main
parent117a2fba0719f071678d172031388a2707041141 (diff)
downloadphp-git-27f1799b6809f5c05595a4f2d34bf98c2461aaa6.tar.gz
MIME headers may be 512 characters long.
Diffstat (limited to 'main')
-rw-r--r--main/fopen_wrappers.c10
1 files changed, 5 insertions, 5 deletions
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] == ' '));