]> granicus.if.org Git - php/commitdiff
fix casting
authorPierre Joye <pierre.php@gmail.com>
Thu, 15 May 2014 18:30:30 +0000 (20:30 +0200)
committerPierre Joye <pierre.php@gmail.com>
Thu, 15 May 2014 18:30:30 +0000 (20:30 +0200)
sapi/cgi/fastcgi.c

index 585b6b8e878884bc0aefcd4f086fd0af68cf0501..afbb7d2a37dadfd5958219d4dd453dcf401cef6a 100644 (file)
@@ -1112,7 +1112,7 @@ static inline void fcgi_close(fcgi_request *req, int force, int destroy)
 
                                shutdown(req->fd, 1);
                                /* read the last FCGI_STDIN header (it may be omitted) */
-                               recv(req->fd, &buf, sizeof(buf), 0);
+                               recv(req->fd, (char *)&buf, sizeof(buf), 0);
                        }
                        closesocket(req->fd);
                }