From: handa Date: Thu, 18 Feb 2010 07:40:54 +0000 (+0000) Subject: (load_external_module): Preprend M17N_MODULE_DIR to the X-Git-Tag: merge-to-XML~4 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0543e43a6d828db6ca300c2ab56caed26bb0715c;p=m17n%2Fm17n-lib.git (load_external_module): Preprend M17N_MODULE_DIR to the module file name. --- diff --git a/src/input.c b/src/input.c index a050edc..cdb45f9 100644 --- a/src/input.c +++ b/src/input.c @@ -1219,9 +1219,11 @@ load_external_module (MInputMethodInfo *im_info, MPlist *plist) module = msymbol ((char *) MTEXT_DATA (MPLIST_MTEXT (plist))); else if (MPLIST_SYMBOL_P (plist)) module = MPLIST_SYMBOL (plist); - module_file = alloca (strlen (MSYMBOL_NAME (module)) + module_file = alloca (strlen (M17N_MODULE_DIR) + 1 + + strlen (MSYMBOL_NAME (module)) + strlen (DLOPEN_SHLIB_EXT) + 1); - sprintf (module_file, "%s%s", MSYMBOL_NAME (module), DLOPEN_SHLIB_EXT); + sprintf (module_file, "%s/%s%s", + M17N_MODULE_DIR, MSYMBOL_NAME (module), DLOPEN_SHLIB_EXT); handle = dlopen (module_file, RTLD_NOW); if (MFAILP (handle))