From 173eac24e653efbce32781f1ed19ae332108d7af Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Mon, 24 Jan 2000 18:56:56 +0000 Subject: [PATCH] pointer arithmetic on void pointers is illegal --- lib/omapi/connection.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/omapi/connection.c b/lib/omapi/connection.c index 47d0e8b1ba..025aa1edfb 100644 --- a/lib/omapi/connection.c +++ b/lib/omapi/connection.c @@ -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);