functions.c

changeset 6
be923400164c
parent 3
510d6b198dde
child 8
28319b20968c
--- a/functions.c	Fri May 27 13:20:15 2011 +0200
+++ b/functions.c	Fri May 27 14:45:16 2011 +0200
@@ -19,11 +19,11 @@
 bool testSuffix(char* filename, settings_t* settings) {
   bool ret = false;
   int tokenlen, fnamelen = strlen(filename);
-  for (int t = 0 ; t < settings->suffixc ; t++) {
-    tokenlen = strlen(settings->suffixv[t]);
+  for (int t = 0 ; t < settings->suffixList->count ; t++) {
+    tokenlen = strlen(settings->suffixList->items[t]);
     if (fnamelen >= tokenlen && tokenlen > 0) {
       if (strncmp(filename+fnamelen-tokenlen,
-                  settings->suffixv[t], tokenlen) == 0) {
+                  settings->suffixList->items[t], tokenlen) == 0) {
         ret = true;
         break;
       }

mercurial