diff options
author | Shawn Routhier <sar@isc.org> | 2016-07-27 10:41:26 -0700 |
---|---|---|
committer | Shawn Routhier <sar@isc.org> | 2016-07-27 10:41:26 -0700 |
commit | 10b7683e586b8462c17bc766be8cb8322c227abc (patch) | |
tree | 9b0d03c85b50876e078f041dda563d1facebe86f /omapip | |
parent | 2427d9e70a63481fae3e7485ffe7d3c14fab729a (diff) | |
download | isc-dhcp-10b7683e586b8462c17bc766be8cb8322c227abc.tar.gz |
[master] Update dmalloc to use a size_t as an argument
Update dmalloc to use a size_t as an argument which will
bring it in line with the call it makes to malloc and
avoid possible truncation.
Diffstat (limited to 'omapip')
-rw-r--r-- | omapip/alloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/omapip/alloc.c b/omapip/alloc.c index a70fe21d..90543446 100644 --- a/omapip/alloc.c +++ b/omapip/alloc.c @@ -4,7 +4,7 @@ protocol... */ /* - * Copyright (c) 2012,2014 by Internet Systems Consortium, Inc. ("ISC") + * Copyright (c) 2012,2014,2016 by Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 2009-2010 by Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 2004-2007 by Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 1999-2003 by Internet Software Consortium @@ -53,9 +53,9 @@ static void print_rc_hist_entry (int); #endif void * -dmalloc(unsigned size, const char *file, int line) { +dmalloc(size_t size, const char *file, int line) { unsigned char *foo; - unsigned len; + size_t len; void **bar; #if defined (DEBUG_MEMORY_LEAKAGE) || defined (DEBUG_MALLOC_POOL) || \ defined (DEBUG_MEMORY_LEAKAGE_ON_EXIT) |