diff options
-rw-r--r-- | mbbsd/admin.c | 4 | ||||
-rw-r--r-- | mbbsd/bbs.c | 2 |
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 != '.') |