fix void * arithmetic

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3208 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-08-27 23:48:27 +00:00
parent efebaadd66
commit 8b7bace6cc

View File

@@ -74,8 +74,8 @@ send_and_recv (int fd,
return 0;
recv->data = realloc(recv->data, recv->length + nbytes);
ret = recvfrom (fd, recv->data + recv->length, nbytes,
0, NULL, &len);
ret = recvfrom (fd, (char *)recv->data + recv->length,
nbytes, 0, NULL, &len);
if (ret < 0) {
free (recv->data);
return -1;