From 06822335f78f58e7c772077cc3ec3a172f31fc5c Mon Sep 17 00:00:00 2001 From: Perry Lorier Date: Mon, 24 Sep 2001 00:04:16 +0000 Subject: [PATCH] Author: Vampire- Log message: Second attempt at fixing unique_name_vector git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@564 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 3 +++ TODO | 3 +++ ircd/ircd_string.c | 5 ++--- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6f49b51..2d6764c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2001-09-21 Vampire- + * ircd/ircd_string.c: unique_name_vector round II. + 2001-09-21 mbuna * configure.in: Add support for darwin diff --git a/TODO b/TODO index ba5f4a3..09bdc45 100644 --- a/TODO +++ b/TODO @@ -8,6 +8,9 @@ Debugging is at least twice as difficult as programming. So if you write a program that uses all of your ability, you'll never be able to debug it all. +Current Bugs: +* privmsg doesn't work because of bugs in unique_vector + High Priority: * something is leaking "a meg a minute" with heap debugging on diff --git a/ircd/ircd_string.c b/ircd/ircd_string.c index 2914f89..aaf7826 100644 --- a/ircd/ircd_string.c +++ b/ircd/ircd_string.c @@ -301,11 +301,10 @@ int unique_name_vector(char* list, char token, char** vector, int size) start = end; } if (*start) { - for (i = 0; i < count; ++i) { + for (i = 0; i < count; ++i) if (0 == ircd_strcmp(vector[i], start)) return count; - vector[count++] = start; - } + vector[count++] = start; } return count; } -- 2.20.1