From: handa Date: Thu, 18 Feb 2010 07:41:22 +0000 (+0000) Subject: (register_device_library): Preprend M17N_MODULE_DIR X-Git-Tag: merge-to-XML~3 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbbdd7c68fc5f410df8eb8a0fb5e6f36b6dc5486;p=m17n%2Fm17n-lib.git (register_device_library): Preprend M17N_MODULE_DIR to the module file name. --- diff --git a/src/m17n-gui.c b/src/m17n-gui.c index ff34547..e6c7a19 100644 --- a/src/m17n-gui.c +++ b/src/m17n-gui.c @@ -125,9 +125,11 @@ register_device_library (MSymbol name, char *lib) MDeviceLibraryInterface *interface; MSTRUCT_CALLOC (interface, MERROR_WIN); - interface->library = malloc (strlen (lib) + interface->library = malloc (strlen (M17N_MODULE_DIR) + 1 + + strlen (lib) + strlen (DLOPEN_SHLIB_EXT) + 1); - sprintf (interface->library, "%s%s", lib, DLOPEN_SHLIB_EXT); + sprintf (interface->library, "%s/%s%s", M17N_MODULE_DIR, lib, + DLOPEN_SHLIB_EXT); if (! device_library_list) device_library_list = mplist (); mplist_add (device_library_list, name, interface);