From 49cf37bbcdf2223ffdb15e829597e509b24a5f10 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Thu, 30 Sep 2004 02:44:22 +0000 Subject: [PATCH] Compile fixes for ircd_string.c (whoops). git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1199 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ircd/ircd_string.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ircd/ircd_string.c b/ircd/ircd_string.c index e264242..37e4b6c 100644 --- a/ircd/ircd_string.c +++ b/ircd/ircd_string.c @@ -305,10 +305,10 @@ int unique_name_vector(char* names, char token, char** vector, int size) { int i; int count = 0; - char* start = list; + char* start = names; char* end; - assert(0 != list); + assert(0 != names); assert(0 != vector); assert(0 < size); @@ -359,10 +359,10 @@ int unique_name_vector(char* names, char token, char** vector, int size) int token_vector(char* names, char token, char** vector, int size) { int count = 0; - char* start = list; + char* start = names; char* end; - assert(0 != list); + assert(0 != names); assert(0 != vector); assert(1 < size); @@ -392,16 +392,16 @@ char* host_from_uh(char* buf, const char* userhost, size_t len) { const char* s; - assert(0 != host); + assert(0 != buf); assert(0 != userhost); if ((s = strchr(userhost, '@'))) ++s; else s = userhost; - ircd_strncpy(host, s, n); - host[n] = '\0'; - return host; + ircd_strncpy(buf, s, len); + buf[len] = '\0'; + return buf; } /* -- 2.20.1