summaryrefslogtreecommitdiff
path: root/ext/ftp
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-03-09 20:52:38 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-03-09 20:52:38 +0000
commit21ff96859ee085d9c3820d825100ec1c01b885d2 (patch)
tree18a962a5f607084221b45e67ddf5459cfaa3dcad /ext/ftp
parenta826ded3cc352741dc4d75a6a205e93034c8ee57 (diff)
downloadphp-git-21ff96859ee085d9c3820d825100ec1c01b885d2.tar.gz
Fixes to ascii downloads on win32.
Diffstat (limited to 'ext/ftp')
-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 51cccab02b..01bbf3905b 100644
--- a/ext/ftp/ftp.c
+++ b/ext/ftp/ftp.c
@@ -851,17 +851,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;
}