]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Pass the non-const version of the pointer to memcpy - silence warnings.
authorDavid Hankins <dhankins@isc.org>
Mon, 27 Feb 2006 23:43:30 +0000 (23:43 +0000)
committerDavid Hankins <dhankins@isc.org>
Mon, 27 Feb 2006 23:43:30 +0000 (23:43 +0000)
server/omapi.c

index 41e87f477115be6d69e990ca36586923cb4fae0f..b24a773b5f32003287978f6af6bd98db937e73c8 100644 (file)
@@ -41,7 +41,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: omapi.c,v 1.55 2006/02/24 23:16:32 dhankins Exp $ Copyright (c) 2004-2006 Internet Systems Consortium.  All rights reserved.\n";
+"$Id: omapi.c,v 1.56 2006/02/27 23:43:30 dhankins Exp $ Copyright (c) 2004-2006 Internet Systems Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -1795,8 +1795,8 @@ class_set_value (omapi_object_t *h,
                                return ISC_R_NOMEMORY;
                        class->hash_string.data =
                                        class->hash_string.buffer->data;
-                       memcpy(class->hash_string.data, value->u.buffer.value,
-                              value->u.buffer.len);
+                       memcpy(class->hash_string.buffer->data,
+                              value->u.buffer.value, value->u.buffer.len);
                        class->hash_string.len = value->u.buffer.len;
                } else
                        return ISC_R_INVALIDARG;