mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 05:09:59 -04:00
pointer arithmetic on void pointers is illegal
This commit is contained in:
parent
cd54e6e148
commit
173eac24e6
1 changed files with 3 additions and 2 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: connection.c,v 1.12 2000/01/24 05:05:43 tale Exp $ */
|
||||
/* $Id: connection.c,v 1.13 2000/01/24 18:56:56 gson Exp $ */
|
||||
|
||||
/* Principal Author: Ted Lemon */
|
||||
|
||||
|
|
@ -733,7 +733,8 @@ connection_copyout(unsigned char *dst, omapi_connection_t *connection,
|
|||
* over uninteresting input.
|
||||
*/
|
||||
if (dst != NULL)
|
||||
(void)memcpy(dst, buffer->base + buffer->current,
|
||||
(void)memcpy(dst, (unsigned char *) buffer->base +
|
||||
buffer->current,
|
||||
copy_bytes);
|
||||
|
||||
isc_buffer_forward(buffer, copy_bytes);
|
||||
|
|
|
|||
Loading…
Reference in a new issue