From 0f22ab6d1a36658633ab56eb1bf5b49575e57eb5 Mon Sep 17 00:00:00 2001 From: in2 Date: Wed, 31 Mar 2004 19:51:39 +0000 Subject: 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 --- mbbsd/admin.c | 4 ++-- mbbsd/bbs.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'mbbsd') 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 != '.') -- cgit v1.2.3