Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mbar

Dir     : e_modules/mbar


Modified Files:
        e_mod_main.c 


Log Message:
Better in_order checking. Don't include the new line char when comparing
strings.

===================================================================
RCS file: /cvs/e/e_modules/mbar/e_mod_main.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- e_mod_main.c        6 Apr 2006 21:30:03 -0000       1.16
+++ e_mod_main.c        6 Apr 2006 23:03:26 -0000       1.17
@@ -2310,13 +2310,14 @@
    if (!ecore_file_exists(path))
       return 0;
 
-   if (!(f = fopen(path, "r")))
+   f = fopen(path, "r");
+   if (!f)
       return 0;
 
    ret = 0;
    while (fgets(name, sizeof(name), f) != NULL)
      {
-        if (!strcmp(name, eap))
+        if (strstr(name, eap))
           {
              ret = 1;
              break;




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