diff options
author | Michael Vetter <jubalh@iodoru.org> | 2023-03-22 15:53:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-22 15:53:41 +0100 |
commit | b393363bd513bbea5d7ed5a0fccbef61aff07daa (patch) | |
tree | a6a643a8a308c098a923931e02b0b8dfaf61c128 /src/plugins | |
parent | e5e8ff221a08939b43edf488fa2a3b8fe95169ea (diff) | |
parent | e59c401c840f379e64945734969db03b0e55ef22 (diff) | |
download | profani-tty-b393363bd513bbea5d7ed5a0fccbef61aff07daa.tar.gz |
Merge pull request #1799 from profanity-im/glib276gsf
Adapt to g_string_free glib 2.75.3 change
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; } |