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:
Really strip all whitespace.

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_file/ecore_file_path.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ecore_file_path.c   28 Sep 2005 02:08:52 -0000      1.6
+++ ecore_file_path.c   28 Sep 2005 02:17:30 -0000      1.7
@@ -2,6 +2,7 @@
  * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
  */
 #include "ecore_file_private.h"
+#include <ctype.h>
 
 static int init = 0;
 static Ecore_List *__ecore_file_path_bin;
@@ -85,6 +86,8 @@
      p = strchr(file, '\n');
    if (p)
      {
+       while (isspace(*p)) --p;
+
        *p = '\0';
        if (ecore_file_exists(file) && ecore_file_can_exec(file)) return 1;
        ecore_list_goto_first(__ecore_file_path_bin);




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to