diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/c_api.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/plugins/c_api.c b/src/plugins/c_api.c index 9f54d94d..cda40c4d 100644 --- a/src/plugins/c_api.c +++ b/src/plugins/c_api.c @@ -540,13 +540,9 @@ c_api_init(void) static char* _c_plugin_name(const char* filename) { - GString* plugin_name_str = g_string_new(""); gchar* name = g_strndup(filename, strlen(filename) - 1); - g_string_append(plugin_name_str, name); + gchar* result = g_strdup_printf("%sso", name); g_free(name); - g_string_append(plugin_name_str, "so"); - char* result = plugin_name_str->str; - g_string_free(plugin_name_str, FALSE); return result; } |