aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-08-02 18:21:08 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-08-02 18:21:08 +0900
commitd80e60f25c9548ac17c7bf88dcad252b02f00908 (patch)
tree7205ed8cf135cdebedea70ef86a1c76fc647e48a
parentNew danish translation (diff)
downloadterminology-d80e60f25c9548ac17c7bf88dcad252b02f00908.tar.gz
fix buffer size - was 1 byte too short on stack
7 not 6 bytes. include nul byte.
-rw-r--r--src/bin/termptyesc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index 7e2370f..a51eb2c 100644
--- a/src/bin/termptyesc.c
+++ b/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",