diff options
-rw-r--r-- | ext/ftp/ftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 0e39e89cf5..4ced3839a0 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -824,7 +824,7 @@ my_send(int s, void *buf, size_t len) if (sent == -1) return -1; - buf += sent; + buf = (char*) buf + sent; size -= sent; } |