fix buffer size - was 1 byte too short on stack

7 not 6 bytes. include nul byte.
This commit is contained in:
Carsten Haitzler 2017-08-02 18:21:08 +09:00
parent dd151b1117
commit d80e60f25c
1 changed files with 1 additions and 1 deletions

View File

@ -1697,7 +1697,7 @@ _handle_esc_xterm(Termpty *ty, const Eina_Unicode *c, const Eina_Unicode *ce)
goto err;
if (*p == '?')
{
char bf[6];
char bf[7];
Config *config = termio_config_get(ty->obj);
TERMPTY_WRITE_STR("\033]10;#");
snprintf(bf, sizeof(bf), "%.2X%.2X%.2X",