raster pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=d80e60f25c9548ac17c7bf88dcad252b02f00908

commit d80e60f25c9548ac17c7bf88dcad252b02f00908
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Wed Aug 2 18:21:08 2017 +0900

    fix buffer size - was 1 byte too short on stack
    
    7 not 6 bytes. include nul byte.
---
 src/bin/termptyesc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

-- 


Reply via email to