r11082 - libprelude/trunk/src

[email protected]
Newsgroups gmane.comp.security.ids.prelude.cvs
Message-ID <[email protected]>
Author: yoann
Date: 2008-11-05 09:54:54 +0100 (Wed, 05 Nov 2008)
New Revision: 11082

Modified:
   libprelude/trunk/src/prelude-failover.c
Log:
Cygwin compilation fixes.


Modified: libprelude/trunk/src/prelude-failover.c
===================================================================
--- libprelude/trunk/src/prelude-failover.c	2008-11-05 08:43:13 UTC (rev 11081)
+++ libprelude/trunk/src/prelude-failover.c	2008-11-05 08:54:54 UTC (rev 11082)
@@ -388,7 +388,7 @@
 
         while ( (de = readdir(dir)) && ret != 1 ) {
 
-                if ( de->d_reclen <= 4 || ! isdigit(de->d_name[4]) )
+                if ( strlen(de->d_name) <= 4 || ! isdigit(de->d_name[4]) )
                         continue;
 
                 if ( strncmp(de->d_name, "data", 4) != 0 || strchr(de->d_name, '.') )

_______________________________________________
Prelude-cvslog site list
[email protected]
http://lists.prelude-ids.org/mailman/listinfo/prelude-cvslog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.