Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Commit time: 2004-09-30 02:44:32 UTC

Modified files:
     ircd/ircd_string.c

Log message:

Compile fixes for ircd_string.c (whoops).

---------------------- diff included ----------------------
Index: ircu2.10/ircd/ircd_string.c
diff -u ircu2.10/ircd/ircd_string.c:1.14 ircu2.10/ircd/ircd_string.c:1.15
--- ircu2.10/ircd/ircd_string.c:1.14    Wed Sep 29 19:40:27 2004
+++ ircu2.10/ircd/ircd_string.c Wed Sep 29 19:44:22 2004
@@ -18,7 +18,7 @@
  */
 /** @file
  * @brief Implementation of string operations.
- * @version $Id: ircd_string.c,v 1.14 2004/09/30 02:40:27 entrope Exp $
+ * @version $Id: ircd_string.c,v 1.15 2004/09/30 02:44:22 entrope Exp $
  */
 #include "config.h"
 
@@ -305,10 +305,10 @@
 {
   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 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 @@
 {
   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;
 }
 
 /*
----------------------- End of diff -----------------------

Reply via email to