From c898f35959099b45f85dda72d31a7f59693833c6 Mon Sep 17 00:00:00 2001 From: Nick Couchman Date: Mon, 2 Apr 2018 07:47:49 -0400 Subject: [PATCH] GUACAMOLE-269: Clean up terminal backspace initialization. --- src/terminal/terminal.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/terminal/terminal.c b/src/terminal/terminal.c index bfc36d1a..076305a9 100644 --- a/src/terminal/terminal.c +++ b/src/terminal/terminal.c @@ -1600,9 +1600,7 @@ static int __guac_terminal_send_key(guac_terminal* term, int keysym, int pressed /* Backspace can vary based on configuration of terminal by client. */ if (keysym == 0xFF08) { - char backspace_str[2]; - backspace_str[0] = term->backspace; - backspace_str[1] = '\0'; + char backspace_str[] = { term->backspace, '\0' }; return guac_terminal_send_string(term, backspace_str); } if (keysym == 0xFF09 || keysym == 0xFF89) return guac_terminal_send_string(term, "\x09"); /* Tab */