forked from enlightenment/terminology
fix buffer size - was 1 byte too short on stack
7 not 6 bytes. include nul byte.
This commit is contained in:
parent
dd151b1117
commit
d80e60f25c
|
@ -1697,7 +1697,7 @@ _handle_esc_xterm(Termpty *ty, const Eina_Unicode *c, const Eina_Unicode *ce)
|
||||||
goto err;
|
goto err;
|
||||||
if (*p == '?')
|
if (*p == '?')
|
||||||
{
|
{
|
||||||
char bf[6];
|
char bf[7];
|
||||||
Config *config = termio_config_get(ty->obj);
|
Config *config = termio_config_get(ty->obj);
|
||||||
TERMPTY_WRITE_STR("\033]10;#");
|
TERMPTY_WRITE_STR("\033]10;#");
|
||||||
snprintf(bf, sizeof(bf), "%.2X%.2X%.2X",
|
snprintf(bf, sizeof(bf), "%.2X%.2X%.2X",
|
||||||
|
|
Loading…
Reference in New Issue