fix void * arithmetic
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3208 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -74,8 +74,8 @@ send_and_recv (int fd,
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
recv->data = realloc(recv->data, recv->length + nbytes);
|
recv->data = realloc(recv->data, recv->length + nbytes);
|
||||||
ret = recvfrom (fd, recv->data + recv->length, nbytes,
|
ret = recvfrom (fd, (char *)recv->data + recv->length,
|
||||||
0, NULL, &len);
|
nbytes, 0, NULL, &len);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
free (recv->data);
|
free (recv->data);
|
||||||
return -1;
|
return -1;
|
||||||
|
Reference in New Issue
Block a user