]> granicus.if.org Git - php/commitdiff
typecast void pointer to char* for pointer arithmetic
authorAndrew Skalski <askalski@php.net>
Sat, 27 Nov 1999 20:58:33 +0000 (20:58 +0000)
committerAndrew Skalski <askalski@php.net>
Sat, 27 Nov 1999 20:58:33 +0000 (20:58 +0000)
ext/ftp/ftp.c

index 0e39e89cf551856e405728ab71ecc6a6e76698a2..4ced3839a06ab9990a80c920800c1228c84b80a0 100644 (file)
@@ -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;
        }