Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/epsilon

Dir     : e17/libs/epsilon/src/lib


Modified Files:
        Epsilon.c 


Log Message:


segv safety

===================================================================
RCS file: /cvs/e/e17/libs/epsilon/src/lib/Epsilon.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -3 -r1.42 -r1.43
--- Epsilon.c   7 Nov 2007 20:12:18 -0000       1.42
+++ Epsilon.c   9 Nov 2007 03:00:34 -0000       1.43
@@ -451,7 +451,7 @@
        dir_len = LEN_DIR_FAIL;
      }
 
-   strncpy(path, dir, path_size);
+   if (dir) strncpy(path, dir, path_size);
    path_size -= dir_len;
    snprintf(path + dir_len, path_size, "/%s.%s", hash, ext);
 }



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to