diff options
-rw-r--r-- | liblangtag/lt-ext-module.c | 4 | ||||
-rw-r--r-- | tests/main.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/liblangtag/lt-ext-module.c b/liblangtag/lt-ext-module.c index 760f88b..517968c 100644 --- a/liblangtag/lt-ext-module.c +++ b/liblangtag/lt-ext-module.c @@ -262,7 +262,7 @@ lt_ext_module_load(lt_ext_module_t *module) (lt_destroy_func_t)dlclose); func = dlsym(module->module, "module_get_version"); if (!func) { - lt_warning(dlerror()); + lt_warning("%s", dlerror()); break; } if (((lt_ext_module_version_func_t)func)() != LT_EXT_MODULE_VERSION) { @@ -272,7 +272,7 @@ lt_ext_module_load(lt_ext_module_t *module) } func = dlsym(module->module, "module_get_funcs"); if (!func) { - lt_warning(dlerror()); + lt_warning("%s", dlerror()); break; } if (!(module->funcs = ((lt_ext_module_get_funcs_func_t)func)())) { diff --git a/tests/main.c b/tests/main.c index ce05af3..0020ac7 100644 --- a/tests/main.c +++ b/tests/main.c @@ -37,7 +37,7 @@ logger(lt_message_type_t type, const char *message, lt_pointer_t user_data) { - lt_error_set(&error, type, message); + lt_error_set(&error, type, "%s", message); } static void |