From 9567fc10740b01e3e01c79c660c68ff81816dfec Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Thu, 26 Jul 2007 02:46:56 +0000 Subject: [PATCH] Update strdup wrapper for current dmalloc version --- include/sigar_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sigar_private.h b/include/sigar_private.h index 347f6ca1..21fc6ecd 100644 --- a/include/sigar_private.h +++ b/include/sigar_private.h @@ -84,7 +84,7 @@ #ifdef DMALLOC /* linux has its own strdup macro, make sure we use dmalloc's */ #define sigar_strdup(s) \ - dmalloc_strdup(__FILE__, __LINE__, s, 0); + dmalloc_strndup(__FILE__, __LINE__, (s), -1, 0) #else # ifdef WIN32 # define sigar_strdup(s) _strdup(s)