raster pushed a commit to branch master.

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

commit 0040e00373b2b63fa2ec14cd2e43939df54247d7
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Mon Sep 1 19:30:16 2014 +0900

    embryo_cc - fix symbol write
    
    this fixes an actual bug coverity found in embryo_cc
    
    fix CID 1039650
---
 src/bin/embryo/embryo_cc_sc6.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/embryo/embryo_cc_sc6.c b/src/bin/embryo/embryo_cc_sc6.c
index a6b299d..ccf8abf 100644
--- a/src/bin/embryo/embryo_cc_sc6.c
+++ b/src/bin/embryo/embryo_cc_sc6.c
@@ -371,7 +371,7 @@ do_symbol(FILE * fbin, char *params, cell opcode)
    int                 len;
    unsigned char       mclass, type;
 
-   for (endptr = params; !sc_isspace(*endptr) && endptr != '\0'; endptr++)
+   for (endptr = params; (!sc_isspace(*endptr)) && (*endptr != '\0'); endptr++)
       /* nothing */ ;
    assert(*endptr == ' ');
 

-- 


Reply via email to