summaryrefslogtreecommitdiffstats
path: root/mbbsd/name.c
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-09-22 21:15:21 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-09-22 21:15:21 +0800
commit25c4be0984fa21112eec92a28acda58eacfd9016 (patch)
tree6148d9972777c9f1f9492c4794c766766b296ed6 /mbbsd/name.c
parentb84f597ee5c156f741dd3aabfc8b18e0f997e684 (diff)
downloadpttbbs-25c4be0984fa21112eec92a28acda58eacfd9016.tar
pttbbs-25c4be0984fa21112eec92a28acda58eacfd9016.tar.gz
pttbbs-25c4be0984fa21112eec92a28acda58eacfd9016.tar.bz2
pttbbs-25c4be0984fa21112eec92a28acda58eacfd9016.tar.lz
pttbbs-25c4be0984fa21112eec92a28acda58eacfd9016.tar.xz
pttbbs-25c4be0984fa21112eec92a28acda58eacfd9016.tar.zst
pttbbs-25c4be0984fa21112eec92a28acda58eacfd9016.zip
fix bug of finding a hiding user, reported by charto.bbs@ptt
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2208 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/name.c')
-rw-r--r--mbbsd/name.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mbbsd/name.c b/mbbsd/name.c
index db96eb08..9a53e086 100644
--- a/mbbsd/name.c
+++ b/mbbsd/name.c
@@ -566,6 +566,8 @@ generalnamecomplete(char *prompt, char *data, int len, size_t nmemb,
if (ptr != 0) {
gnc_findbound(data, &start, &end, nmemb, compar);
ret = gnc_completeone(data, start, end, permission, getname);
+ if (ret < 0)
+ data[0] = 0;
} else
ptr = -1;
break;