]> granicus.if.org Git - php/commitdiff
Fixes to ascii downloads on win32.
authorIlia Alshanetsky <iliaa@php.net>
Wed, 9 Mar 2005 20:52:38 +0000 (20:52 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 9 Mar 2005 20:52:38 +0000 (20:52 +0000)
ext/ftp/ftp.c

index 51cccab02b2060ababc41693310e6435f0454353..01bbf3905bd7347eafd1101e670fdf8b75cddb4b 100644 (file)
@@ -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;
                        }