summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-03-09 20:53:01 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-03-09 20:53:01 +0000
commit47a02a0bdf8ecdfb2bc743228da08ec4ff74025a (patch)
treeadb1fea5314efa872760157bbc6145a1ec03e4db
parentafce7aafae05d41c7a982e562b1838384d39e75a (diff)
downloadphp-git-47a02a0bdf8ecdfb2bc743228da08ec4ff74025a.tar.gz
MFH: Fixes to ascii downloads on win32.
-rw-r--r--ext/ftp/ftp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c
index c44662f629..6427974faf 100644
--- a/ext/ftp/ftp.c
+++ b/ext/ftp/ftp.c
@@ -718,17 +718,17 @@ ftp_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, ftptype_t type,
php_stream_write(outstream, "\r\n", sizeof("\r\n")-1);
if (*s == '\r') {
- *s++;
+ s++;
}
/* for some reason some servers prefix a \r before a \n,
* resulting in a \r\r\n in the buffer when
* the remote file already has windoze style line endings.
*/
if (*s == '\r') {
- *s++;
+ s++;
}
if (*s == '\n') {
- *s++;
+ s++;
}
ptr = s;
}