More string and buffer functions.
[apps/madmutt.git] / lib-lua / runtime.c
index 1957a9c..b90d460 100644 (file)
@@ -41,12 +41,12 @@ void luaM_initialize(void)
         {LUA_STRLIBNAME,  luaopen_string},
         {LUA_MATHLIBNAME, luaopen_math},
         {LUA_DBLIBNAME,   luaopen_debug},
-        {"MCore",         luaopen_MCore},
+        {"mod_core",      luaopen_mod_core},
         {"MTransport",    luaopen_MTransport},
         {"MAlias",        luaopen_MAlias},
-        {"MCharset",      luaopen_MCharset},
-        {"Mime",          luaopen_Mime},
-        {"Buffy",         luaopen_Buffy},
+        {"mod_cset",      luaopen_mod_cset},
+        {"mod_mime",      luaopen_mod_mime},
+        {"mod_buffy",     luaopen_mod_buffy},
         {"mod_ssl",       luaopen_mod_ssl},
         {"mod_crypt",     luaopen_mod_crypt},
         {"mod_score",     luaopen_mod_score},
@@ -147,7 +147,7 @@ rx_t *luaM_rxnew(const char *val)
 
 char *luaM_pathnew(const char *val)
 {
-    char path[PATH_MAX];
+    char path[_POSIX_PATH_MAX];
     _mutt_expand_path(path, sizeof(path), val, 0);
     return m_strdup(path);
 }