[NeoStats-Devel] [Commits] r94 - branches/3.0

[email protected] Sat, 27 Aug 2005 07:41:32 +1000
Newsgroups gmane.comp.neostats.devel
Message-ID <[email protected]>
Author: Mark
Date: Sat Aug 27 05:41:27 2005
New Revision: 94

Modified:
   branches/3.0/TriviaServ.c
Log:
portability fix

Modified: branches/3.0/TriviaServ.c
==============================================================================
--- branches/3.0/TriviaServ.c	(original)
+++ branches/3.0/TriviaServ.c	Sat Aug 27 05:41:27 2005
@@ -291,7 +291,7 @@
 	if ((ircstrcasecmp(entry->d_name, ".")==0) || (ircstrcasecmp(entry->d_name, "..")==0)) 
 		return 0;
 	/* check filename extension */
-	ptr = rindex(entry->d_name, '.');
+	ptr = strrchr(entry->d_name, '.');
 	if ((ptr) && !(ircstrcasecmp(ptr, ".qns"))) {
 			return NS_SUCCESS;
 	}