raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=f82c77843ee0556fec28071203674d7eeb7c8544

commit f82c77843ee0556fec28071203674d7eeb7c8544
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Sat Nov 9 10:15:35 2013 +0900

    embryo - embryo_cc: fix buffer overrun warning
    
    gcc warning was right. it's a pretty smart cookie too.
---
 src/bin/embryo/embryo_cc_sc1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/embryo/embryo_cc_sc1.c b/src/bin/embryo/embryo_cc_sc1.c
index 0340d35..37e71d4 100644
--- a/src/bin/embryo/embryo_cc_sc1.c
+++ b/src/bin/embryo/embryo_cc_sc1.c
@@ -681,7 +681,7 @@ setconfig(char *root)
          }
 
         /* Make sure we have enough space for the trailing DIRSEP_CHAR */
-        if (strlen(path) == sizeof(path) - 1)
+        if (strlen(path) == (sizeof(path) - 1 -1))
           {
              len = strlen(path);
              path[len] = DIRSEP_CHAR;

-- 


Reply via email to