summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-01 03:51:39 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-01 03:51:39 +0800
commit0f22ab6d1a36658633ab56eb1bf5b49575e57eb5 (patch)
treea6d2156c4cbe36fdea5472307ef42e1a1535a8e1 /mbbsd
parent42f15ae72e331813e4fe868fffc80f625b684671 (diff)
downloadpttbbs-0f22ab6d1a36658633ab56eb1bf5b49575e57eb5.tar
pttbbs-0f22ab6d1a36658633ab56eb1bf5b49575e57eb5.tar.gz
pttbbs-0f22ab6d1a36658633ab56eb1bf5b49575e57eb5.tar.bz2
pttbbs-0f22ab6d1a36658633ab56eb1bf5b49575e57eb5.tar.lz
pttbbs-0f22ab6d1a36658633ab56eb1bf5b49575e57eb5.tar.xz
pttbbs-0f22ab6d1a36658633ab56eb1bf5b49575e57eb5.tar.zst
pttbbs-0f22ab6d1a36658633ab56eb1bf5b49575e57eb5.zip
brdname must starts with an alphabetic character (not a number)
edit board default to abort git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1663 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/admin.c4
-rw-r--r--mbbsd/bbs.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index 4f45f181..654f045f 100644
--- a/mbbsd/admin.c
+++ b/mbbsd/admin.c
@@ -369,7 +369,7 @@ m_mod_board(char *bname)
if (getbnum(genbuf)) {
move(3, 0);
outs("¿ù»~! ªO¦W¹p¦P");
- } else if (!invalid_brdname(genbuf)) {
+ } else if ( !invalid_brdname(genbuf) ){
strlcpy(newbh.brdname, genbuf, sizeof(newbh.brdname));
break;
}
@@ -426,7 +426,7 @@ m_mod_board(char *bname)
clear();
}
}
- getdata_str(b_lines - 1, 0, msg_sure_ny, genbuf, 4, LCECHO, "Y");
+ getdata_str(b_lines - 1, 0, msg_sure_ny, genbuf, 4, LCECHO, "N");
if ((*genbuf == 'y') && memcmp(&newbh, &bh, sizeof(bh))) {
if (strcmp(bh.brdname, newbh.brdname)) {
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 25899716..2eb97924 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -826,7 +826,7 @@ invalid_brdname(char *brd)
register char ch;
ch = *brd++;
- if (not_alnum(ch))
+ if (!isalpha(ch))
return 1;
while ((ch = *brd++)) {
if (not_alnum(ch) && ch != '_' && ch != '-' && ch != '.')