Compile fixes for ircd_string.c (whoops).
authorMichael Poole <mdpoole@troilus.org>
Thu, 30 Sep 2004 02:44:22 +0000 (02:44 +0000)
committerMichael Poole <mdpoole@troilus.org>
Thu, 30 Sep 2004 02:44:22 +0000 (02:44 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1199 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ircd/ircd_string.c

index e264242fa82ea188f38e2afa37b4816ae50014f2..37e4b6cf92f38ac4e751c917e64b73d7ea97ab83 100644 (file)
@@ -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;
 }
 
 /*