Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_file


Modified Files:
        ecore_file_path.c 


Log Message:
The size is there to not overflow the buf, so just use the buf size.

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_file/ecore_file_path.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ecore_file_path.c   11 Jun 2005 13:29:09 -0000      1.1
+++ ecore_file_path.c   12 Jun 2005 14:08:46 -0000      1.2
@@ -72,8 +72,7 @@
 
    while ((dir = ecore_list_next(__ecore_file_path_bin)) != NULL)
      {
-       snprintf(buf, strlen(dir) + strlen(app) + 2, "%s/%s", dir, app);
-           // 2 = "/" + "\0"
+       snprintf(buf, sizeof(buf), "%s/%s", dir, app);
        if (ecore_file_exists(buf) && ecore_file_can_exec(buf))
          {
             found = 1;




-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to