billiob pushed a commit to branch master.

commit 7f5f407d7dbe7f2ba48a1e614f96a4b0953855f7
Author: Boris Faure <[email protected]>
Date:   Fri May 10 23:01:58 2013 +0200

    compat: fix len computation when handling DCS escape codes
---
 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 1044581..6f40bb3 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -1130,7 +1130,6 @@ _handle_esc_dcs(Termpty *ty __UNUSED__, const 
Eina_Unicode *c, const Eina_Unicod
         b++;
         cc++;
      }
-   len = cc - c;
    if (b == be)
      {
         ERR("dcs parsing overflowed (binary data?)");
@@ -1139,6 +1138,7 @@ _handle_esc_dcs(Termpty *ty __UNUSED__, const 
Eina_Unicode *c, const Eina_Unicod
    *b = 0;
    if ((*cc == ST) || (*cc == '\\')) cc++;
    else return 0;
+   len = cc - c;
    switch (buf[0])
      {
       case '+':

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to