From 3c8b75793019f75a2efd3291b44601457464af21 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Fri, 28 Oct 2016 21:52:22 +0200 Subject: [PATCH] Remove auto : --- source/view.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/view.c b/source/view.c index 96d76182..d20aa8e1 100644 --- a/source/view.c +++ b/source/view.c @@ -176,9 +176,8 @@ static void menu_capture_screenshot ( void ) static void rofi_view_update_prompt ( RofiViewState *state ) { if ( state->prompt ) { - char *prompt = g_strdup_printf ( "%s:", mode_get_display_name ( state->sw ) ); - textbox_text ( state->prompt, prompt ); - g_free ( prompt ); + const char *str = mode_get_display_name ( state->sw ); + textbox_text ( state->prompt, str ); } }