From ecc77c81cc4ea3334995e117e5c42bd3ad6725e2 Mon Sep 17 00:00:00 2001 From: Andrew Skalski Date: Sat, 27 Nov 1999 20:58:33 +0000 Subject: [PATCH] typecast void pointer to char* for pointer arithmetic --- ext/ftp/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.40.0