diff options
Diffstat (limited to 'mbbsd/bbslua.c')
-rw-r--r-- | mbbsd/bbslua.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/mbbsd/bbslua.c b/mbbsd/bbslua.c index 50eb69bc..ebe8e23c 100644 --- a/mbbsd/bbslua.c +++ b/mbbsd/bbslua.c @@ -744,7 +744,6 @@ bls_setfn(char *fn, size_t sz, const char *p) case BLS_GLOBAL: snprintf(fn, sz, "%s/" BLSCONF_PREFIX "U%08x", BLSCONF_GPATH, blrt.storename); - fn[sz-1] = 0; return 1; case BLS_USER: @@ -754,7 +753,6 @@ bls_setfn(char *fn, size_t sz, const char *p) snprintf(fn + strlen(fn), sz - strlen(fn), "/" BLSCONF_PREFIX "G%08x", blrt.storename); - fn[sz-1] = 0; return 1; } return 0; @@ -1337,7 +1335,6 @@ bbslua_logo(lua_State *L) snprintf(msg, sizeof(msg), " ▲ 此程式使用新版的 BBS-Lua 規格 (%0.3f),您可能無法正常執行", tocinterface); - msg[sizeof(msg)-1] = 0; fullmsg(msg); fullmsg(" 若執行出現錯誤,建議您重新登入 BBS 後再重試"); fullmsg(""); @@ -1386,7 +1383,6 @@ bbslua_logo(lua_State *L) snprintf(msg, sizeof(msg), " ■ BBS-Lua %.03f (Build " __DATE__ " " __TIME__") ", (double)BBSLUA_INTERFACE_VER); - msg[sizeof(msg)-1] = 0; fullmsg(msg); // system break key prompt |