]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Squelch a (legitimate) compiler warning.
authorguy <guy>
Sat, 29 Jan 2005 10:37:02 +0000 (10:37 +0000)
committerguy <guy>
Sat, 29 Jan 2005 10:37:02 +0000 (10:37 +0000)
smbutil.c

index 09ef803a5ce6ffd2a47e5a1e79007e95e83ec9ad..ec26f3319d4aaed9b39d91aa03ae8f705375f6f1 100644 (file)
--- a/smbutil.c
+++ b/smbutil.c
@@ -12,7 +12,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-     "@(#) $Header: /tcpdump/master/tcpdump/smbutil.c,v 1.35 2004-12-30 03:36:51 guy Exp $";
+     "@(#) $Header: /tcpdump/master/tcpdump/smbutil.c,v 1.36 2005-01-29 10:37:02 guy Exp $";
 #endif
 
 #include <tcpdump-stdinc.h>
@@ -649,7 +649,7 @@ smb_fdata1(const u_char *buf, const char *fmt, const u_char *maxbuf,
        case 'c':
          {
            TCHECK2(*buf, stringlen);
-           printf("%-*.*s", stringlen, stringlen, buf);
+           printf("%-*.*s", (int)stringlen, (int)stringlen, buf);
            buf += stringlen;
            fmt++;
            while (isdigit((unsigned char)*fmt))