From: Andrew Skalski Date: Sat, 27 Nov 1999 20:58:33 +0000 (+0000) Subject: typecast void pointer to char* for pointer arithmetic X-Git-Tag: PRE_RETURN_REF_PATCH~205 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ecc77c81cc4ea3334995e117e5c42bd3ad6725e2;p=php typecast void pointer to char* for pointer arithmetic --- 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; }