summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbslua.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/bbslua.c')
-rw-r--r--mbbsd/bbslua.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mbbsd/bbslua.c b/mbbsd/bbslua.c
index ebe8e23c..084b7698 100644
--- a/mbbsd/bbslua.c
+++ b/mbbsd/bbslua.c
@@ -418,8 +418,7 @@ bl_getstr(lua_State* L)
* this part now done in getdata_str
if (pmsg && *pmsg)
{
- strncpy(buf, pmsg, sizeof(buf)-1);
- buf[sizeof(buf)-1] = 0;
+ strlcpy(buf, pmsg, sizeof(buf));
}
*/