From: <enl...@li...> - 2001-08-12 13:45:34
|
Enlightenment CVS committal Author : gilbertt Project : e17 Module : libs/imlib2 Dir : e17/libs/imlib2/loaders Modified Files: loader_db.c Log Message: safer =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/imlib2/loaders/loader_db.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -3 -r1.18 -r1.19 --- loader_db.c 2001/08/12 13:41:11 1.18 +++ loader_db.c 2001/08/12 13:45:32 1.19 @@ -278,7 +278,9 @@ tmp = strrchr(file, ':'); if(!tmp) return 0; - *tmp = '\0'; + *tmp++ = '\0'; + if(!tmp) + return 0; strcpy(key, tmp + 1); if (exists(file)) |