Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : libs/ecore

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


Modified Files:
        ecore_file.c 


Log Message:
Correct handling for HOME=""

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_file/ecore_file.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- ecore_file.c        30 Sep 2005 00:51:29 -0000      1.18
+++ ecore_file.c        30 Sep 2005 00:55:27 -0000      1.19
@@ -320,10 +320,11 @@
        len = strlen(homedir);
        exe = malloc(len + exe2 - exe1 + 2);
        if (!exe) return NULL;
+       pp = exe;
        if (len)
          {
             strcpy(exe, homedir);
-            pp = exe + len;
+            pp += len;
             if (*(pp - 1) != '/')
               {
                  *pp = '/';
@@ -396,5 +397,6 @@
        p++;
      }
    *pp = 0;
+   printf("%s\n", exe);
    return exe;
 }




-------------------------------------------------------
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