tasn pushed a commit to branch master.

commit 76eceda2ee4bd6a284389c74a60083bc6d5f8b1c
Author: Tom Hacohen <[email protected]>
Date:   Fri Aug 9 15:46:40 2013 +0100

    Evas textblock: make an if look nicer (no logic change).
    
    This makes things simpler and less confusing and might have prevented
    the issue Stefan fixed in 4f484b81d48b73709b3e4b4b1b01e383976ecb0a
    from happenning in the first place.
---
 src/lib/evas/canvas/evas_object_textblock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/evas/canvas/evas_object_textblock.c 
b/src/lib/evas/canvas/evas_object_textblock.c
index 2904d30..6a0f3bc 100644
--- a/src/lib/evas/canvas/evas_object_textblock.c
+++ b/src/lib/evas/canvas/evas_object_textblock.c
@@ -5817,7 +5817,7 @@ _escaped_char_get(const char *s, const char *s_end)
           }
 
         len = s_end - s;
-        if (len >= sizeof(ustr) + 1)
+        if (len > sizeof(ustr))
            len = sizeof(ustr);
 
         memcpy(ustr, s, len);

-- 

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk

Reply via email to