Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mbar

Dir     : e_modules/mbar


Modified Files:
        e_mod_main.c 


Log Message:
Fix adding eaps to order file.

===================================================================
RCS file: /cvs/e/e_modules/mbar/e_mod_main.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- e_mod_main.c        6 Apr 2006 20:35:24 -0000       1.15
+++ e_mod_main.c        6 Apr 2006 21:30:03 -0000       1.16
@@ -2197,21 +2197,14 @@
 {
    FILE *f;
    char path[4096];
-
+   char buf[1024];
+   
    snprintf(path, sizeof(path), "%s/.e/e/applications/%s/.order", 
getenv("HOME"), dir);
-
-   if (!ecore_file_exists(path))
-     {
-        f = fopen(path, "w");
-        if (!f)
-           return;
-        fclose(f);
-     }
-
-   f = fopen(path, "w+");
+   f = fopen(path, "a");
    if (!f)
       return;
-   fwrite(name, sizeof(char), strlen(name), f);
+   snprintf(buf, sizeof(buf), "%s\n", name);
+   fwrite(buf, sizeof(char), strlen(buf), f);
    fclose(f);
 }
 




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to