[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/geas/lib/classdefs classdata.c
From: |
Neil Tiffin |
Subject: |
gnue/geas/lib/classdefs classdata.c |
Date: |
Wed, 26 Sep 2001 17:35:59 -0400 |
CVSROOT: /home/cvs
Module name: gnue
Changes by: Neil Tiffin <address@hidden> 01/09/26 17:35:59
Modified files:
geas/lib/classdefs: classdata.c
Log message:
Fix Bug found by Reinhard.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/lib/classdefs/classdata.c.diff?cvsroot=OldCVS&tr1=1.72&tr2=1.73&r1=text&r2=text
Patches:
Index: gnue/geas/lib/classdefs/classdata.c
diff -u gnue/geas/lib/classdefs/classdata.c:1.72
gnue/geas/lib/classdefs/classdata.c:1.73
--- gnue/geas/lib/classdefs/classdata.c:1.72 Tue Sep 25 15:48:43 2001
+++ gnue/geas/lib/classdefs/classdata.c Wed Sep 26 17:35:59 2001
@@ -22,7 +22,7 @@
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- $Id: classdata.c,v 1.72 2001/09/25 19:48:43 ntiffin Exp $
+ $Id: classdata.c,v 1.73 2001/09/26 21:35:59 ntiffin Exp $
*/
@@ -2934,9 +2934,8 @@
printf( "ext : '%s' (%d)\n" , ext , strlen(ext) ); printf( *
"compare(%s,%s)\n" , &filename[flen - elen], ext ); */
- if (g_strcasecmp (&filename[flen - elen], ext) == 0 && (elen < flen))
+ if ( (elen < flen) && g_strcasecmp (&filename[flen - elen], ext) == 0 )
{
- /* && filename[flen - elen - 1] == '.') */
return (TRUE);
}
return (FALSE);