diff options
author | Martin Kaiser <wireshark@kaiser.cx> | 2012-09-05 20:31:52 +0000 |
---|---|---|
committer | Martin Kaiser <wireshark@kaiser.cx> | 2012-09-05 20:31:52 +0000 |
commit | cc9feb98571a2945aa6a3ce5101d44869a629bb8 (patch) | |
tree | be9b69cb58e9d698e81849e5f9e806a8af52c138 /epan/dissectors/packet-ftp.c | |
parent | 45af5d6a2d01a47dd8348b71efb46ed12eb5b273 (diff) |
fix compilation on Win7x64 (I hope)
svn path=/trunk/; revision=44783
Diffstat (limited to 'epan/dissectors/packet-ftp.c')
-rw-r--r-- | epan/dissectors/packet-ftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ftp.c b/epan/dissectors/packet-ftp.c index ca502aea08..c764ddc0dc 100644 --- a/epan/dissectors/packet-ftp.c +++ b/epan/dissectors/packet-ftp.c @@ -219,7 +219,7 @@ parse_port_pasv(const guchar *line, int linelen, guint32 *ftp_ip, guint16 *ftp_p */ *ftp_port = ((port[0] & 0xFF)<<8) | (port[1] & 0xFF); *ftp_ip = g_htonl((ip_address[0] << 24) | (ip_address[1] <<16) | (ip_address[2] <<8) | ip_address[3]); - *pasv_offset = p - args; + *pasv_offset = (guint32)(p - args); *ftp_port_len = (port[0] < 10 ? 1 : (port[0] < 100 ? 2 : 3 )) + 1 + (port[1] < 10 ? 1 : (port[1] < 100 ? 2 : 3 )); *ftp_ip_len = (ip_address[0] < 10 ? 1 : (ip_address[0] < 100 ? 2 : 3)) + 1 + |