--- lbbs/src/menu_proc.c 2025/05/04 14:54:55 1.9 +++ lbbs/src/menu_proc.c 2025/05/05 11:11:06 1.10 @@ -34,9 +34,11 @@ int exec_mbem(const char *str) void *hdll; int (*func)(); char *c, *s; - char buf[1024]; + char buf[FILE_PATH_LEN]; + + strncpy(buf, str, sizeof(buf) - 1); + buf[sizeof(buf) - 1] = '\0'; - strcpy(buf, str); s = strstr(buf, "@mod:"); if (s) {