GUACAMOLE-269: Remove unnecessary dynamic allocation.

This commit is contained in:
Nick Couchman 2018-03-24 14:54:27 -04:00
parent 86dde85b2d
commit 112ce5299e

View File

@ -1600,7 +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 = malloc(sizeof(char) * 2);
char backspace_str[2];
backspace_str[0] = term->backspace;
backspace_str[1] = '\0';
return guac_terminal_send_string(term, backspace_str);