From: Enlightenment C. <no...@cv...> - 2006-04-06 23:03:42
|
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; |