struct module **modlist = NULL;
static const char *core_module_table[] = {
+ "m_ban",
"m_die",
"m_error",
"m_join",
void
load_core_modules(int warn)
{
- char module_name[MAXPATHLEN];
+ char module_name[PATH_MAX];
int i;
int
load_one_module(const char *path, int coremodule)
{
- char modpath[MAXPATHLEN];
+ char modpath[PATH_MAX];
rb_dlink_node *pathst;
struct module_path *mpath;
dlclose(modlist[modindex]->address);
rb_free(modlist[modindex]->name);
- memcpy(&modlist[modindex], &modlist[modindex + 1],
+ memmove(&modlist[modindex], &modlist[modindex + 1],
sizeof(struct module) * ((num_mods - 1) - modindex));
if(num_mods != 0)