From f503e634fdcd5af06da9104bad74b9fb3e1b29cd Mon Sep 17 00:00:00 2001 From: Valery Yatsko Date: Wed, 2 Apr 2008 06:00:24 +0400 Subject: [PATCH] DupNString removed - we don't need it now --- include/irc_string.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/irc_string.h b/include/irc_string.h index 2aa7f41..ba1d0a5 100644 --- a/include/irc_string.h +++ b/include/irc_string.h @@ -99,12 +99,6 @@ size_t strlcpy(char *dst, const char *src, size_t siz); size_t strlcat(char *dst, const char *src, size_t siz); #endif -#ifdef HAVE_STRNDUP -#define DupNString(x, y, len) do { x = strndup(y, len); if(x == NULL) outofmemory(); } while (0) -#else -#define DupNString(x, y, len) do { x = malloc(len+1); if(x == NULL) outofmemory(); strlcpy(x, y, len+1); } while(0) -#endif - /* * clean_string - cleanup control and high ascii characters * -Dianora