summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Skalski <askalski@php.net>1999-11-27 20:58:33 +0000
committerAndrew Skalski <askalski@php.net>1999-11-27 20:58:33 +0000
commitecc77c81cc4ea3334995e117e5c42bd3ad6725e2 (patch)
tree72f95566f23740731576f668c7f8f491346110b0
parent3e8303abf0dfab5a93d5109ef0abe8e4c1e55f41 (diff)
downloadphp-git-ecc77c81cc4ea3334995e117e5c42bd3ad6725e2.tar.gz
typecast void pointer to char* for pointer arithmetic
-rw-r--r--ext/ftp/ftp.c2
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;
}