From 1bbc108350cce991c081015da516ad230aa8fe58 Mon Sep 17 00:00:00 2001 From: wens Date: Sat, 5 Jul 2008 14:52:26 +0000 Subject: Change Vector_search fix namecomplete case error git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4385 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- common/sys/vector.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common') diff --git a/common/sys/vector.c b/common/sys/vector.c index fc99bdc8..af39b410 100644 --- a/common/sys/vector.c +++ b/common/sys/vector.c @@ -173,7 +173,7 @@ Vector_search(const struct Vector *self, const char *name) int i; for (i=0; ilength; i++) if (strcasecmp(self->base + self->size * i, name) == 0) - return 1; - return 0; + return i; + return -1; } -- cgit v1.2.3