fix buffer size - was 1 byte too short on stack

7 not 6 bytes. include nul byte.
terminology-1.1
Carsten Haitzler 6 years ago
parent dd151b1117
commit d80e60f25c
  1. 2
      src/bin/termptyesc.c

@ -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",

Loading…
Cancel
Save