summaryrefslogtreecommitdiff
path: root/tcpdump.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-09-15 01:41:59 -0700
committerGuy Harris <guy@alum.mit.edu>2018-09-15 01:41:59 -0700
commit4c1c6e82938e355a998da1b01212b6ba7c7fdddf (patch)
tree661b96a69878a69f577483bfcde3831b1ec9c918 /tcpdump.c
parent89576203dda204301600e0ca9292dc61f4911ea8 (diff)
downloadtcpdump-4c1c6e82938e355a998da1b01212b6ba7c7fdddf.tar.gz
Fix data types.
If you're accumulating the lengths of strings, as returned by strlen(), and passing the result to malloc(), it should be accumulated in a size_t.
Diffstat (limited to 'tcpdump.c')
-rw-r--r--tcpdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcpdump.c b/tcpdump.c
index 32075b51..19e2d619 100644
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -985,7 +985,7 @@ static char *
copy_argv(char **argv)
{
char **p;
- u_int len = 0;
+ size_t len = 0;
char *buf;
char *src, *dst;