diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 0e39e89cf55..4ced3839a06 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; }