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
rb_free(client_p->localClient->passwd);
}
- DupNString(client_p->localClient->passwd, parv[1], PASSWDLEN);
+ client_p->localClient->passwd = rb_strndup(parv[1], PASSWDLEN);
/* These are for servers only */
if(parc > 2 && client_p->user == NULL)