Include 2008 in the copyright years.
[rsync/rsync.git] / token.c
diff --git a/token.c b/token.c
index 81e2537..5e76148 100644 (file)
--- a/token.c
+++ b/token.c
@@ -3,7 +3,7 @@
  *
  * Copyright (C) 1996 Andrew Tridgell
  * Copyright (C) 1996 Paul Mackerras
- * Copyright (C) 2003-2007 Wayne Davison
+ * Copyright (C) 2003-2008 Wayne Davison
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -20,6 +20,7 @@
  */
 
 #include "rsync.h"
+#include "ifuncs.h"
 #include "zlib/zlib.h"
 
 extern int do_compression;
@@ -151,7 +152,7 @@ static void init_set_compression(void)
 
                /* Move *.foo items into the stuffix tree. */
                if (*start == '*' && start[1] == '.' && start[2]
-                && !strchr(start+2, '.')) {
+                && !strpbrk(start+2, ".?*")) {
                        add_suffix(&suftree, start[2], start+3);
                        t = start;
                }