diff options
author | Daniel Carl <danielcarl@gmx.de> | 2013-09-27 01:08:21 +0200 |
---|---|---|
committer | Daniel Carl <danielcarl@gmx.de> | 2013-09-27 01:08:21 +0200 |
commit | 68354eb3b11c149c54099e5522808330694a9327 (patch) | |
tree | 9789ab08e4cb1ccc172ac110ec35177d64b026f6 /src/completion.c | |
parent | 3254e5a2aa2809c5797c5f23f5c8bec01613a079 (diff) |
If possible use g_strconcat instead of g_strdup_printf.
Diffstat (limited to 'src/completion.c')
-rw-r--r-- | src/completion.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/completion.c b/src/completion.c index d3e10df..b8ef9bf 100644 --- a/src/completion.c +++ b/src/completion.c @@ -273,7 +273,7 @@ static gboolean tree_selection_func(GtkTreeSelection *selection, if (comp.count) { comp.text = g_strdup_printf("%s%d%s", comp.prefix, comp.count, value); } else { - comp.text = g_strdup_printf("%s%s", comp.prefix, value); + comp.text = g_strconcat(comp.prefix, value, NULL); } /* print the text also into inputbox */ vb_set_input_text(comp.text); |