diff --git a/src/ChangeLog b/src/ChangeLog index 6d4c3711d..a755cd1a4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2003-11-24 Andrew V. Samoilov + + * hotlist.c (add_new_group_input): Clean up. + * wtools.c (do_create_message): Eliminate g_strdup_printf(). + (bg_message): Likewise. + 2003-11-21 Pavel Roskin * view.c (check_left_right_keys): Implement fast scrolling if diff --git a/src/hotlist.c b/src/hotlist.c index 5a14f57e4..a5e3b8a11 100644 --- a/src/hotlist.c +++ b/src/hotlist.c @@ -973,7 +973,7 @@ static int add_new_group_input (char *header, char *label, char **result) Quick_input.widgets = quick_widgets; if ((ret = quick_dialog (&Quick_input)) != B_CANCEL){ - *result = *(quick_widgets [3].str_result); + *result = my_str; return ret; } else return 0; diff --git a/src/wtools.c b/src/wtools.c index 37d066f0a..2f6ce6aaa 100644 --- a/src/wtools.c +++ b/src/wtools.c @@ -200,7 +200,7 @@ do_create_message (int flags, const char *title, const char *text) Dlg_head *d; /* Add empty lines before and after the message */ - p = g_strdup_printf ("\n%s\n", text); + p = g_strconcat ("\n", text, "\n", NULL); query_dialog (title, p, flags, 0); d = last_query_dlg; init_dlg (d); @@ -253,7 +253,7 @@ fg_message (int flags, const char *title, const char *text) static void bg_message (int dummy, int *flags, char *title, const char *text) { - title = g_strdup_printf ("%s %s", _("Background process:"), title); + title = g_strconcat (_("Background process:"), " ", title, NULL); fg_message (*flags, title, text); g_free (title); }