summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-06 11:51:43 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-06 11:51:43 +0800
commitaed0b53aad42a5708d232c1eb44012af4574299c (patch)
treee87dab609cd9501e377103ce5cb51b47ee429969
parent5aa5f0dc57a1eb9809022020d2643293496aae60 (diff)
downloadpttbbs-aed0b53aad42a5708d232c1eb44012af4574299c.tar
pttbbs-aed0b53aad42a5708d232c1eb44012af4574299c.tar.gz
pttbbs-aed0b53aad42a5708d232c1eb44012af4574299c.tar.bz2
pttbbs-aed0b53aad42a5708d232c1eb44012af4574299c.tar.lz
pttbbs-aed0b53aad42a5708d232c1eb44012af4574299c.tar.xz
pttbbs-aed0b53aad42a5708d232c1eb44012af4574299c.tar.zst
pttbbs-aed0b53aad42a5708d232c1eb44012af4574299c.zip
Fix r2468.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2470 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/name.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/name.c b/mbbsd/name.c
index a88ac1b1..af93ccf5 100644
--- a/mbbsd/name.c
+++ b/mbbsd/name.c
@@ -591,7 +591,7 @@ generalnamecomplete(char *prompt, char *data, int len, size_t nmemb,
if (ptr != 0) {
gnc_findbound(data, &start, &end, nmemb, compar);
if (gnc_complete(data, &start, &end, permission, getname)
- == 1)
+ == 1 || (*compar)(start, data, len) == 0)
ret = start;
else {
data[0] = '\n';