From bbbdd7c68fc5f410df8eb8a0fb5e6f36b6dc5486 Mon Sep 17 00:00:00 2001 From: handa Date: Thu, 18 Feb 2010 07:41:22 +0000 Subject: [PATCH] (register_device_library): Preprend M17N_MODULE_DIR to the module file name. --- src/m17n-gui.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); -- 1.7.10.4