summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/view.c5
1 files 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 );
}
}