Cast pat_len to an int when using it as a field width.
authorWayne Davison <wayned@samba.org>
Fri, 13 Oct 2006 06:24:24 +0000 (06:24 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 13 Oct 2006 06:24:24 +0000 (06:24 +0000)
exclude.c

index 1541df7..397acf2 100644 (file)
--- a/exclude.c
+++ b/exclude.c
@@ -911,7 +911,7 @@ void parse_rule(struct filter_list_struct *listp, const char *pattern,
 
                if (pat_len >= MAXPATHLEN) {
                        rprintf(FERROR, "discarding over-long filter: %.*s\n",
-                               pat_len, cp);
+                               (int)pat_len, cp);
                        continue;
                }