aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-ftp.c')
-rw-r--r--epan/dissectors/packet-ftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ftp.c b/epan/dissectors/packet-ftp.c
index ea62b24274..da9e7b597d 100644
--- a/epan/dissectors/packet-ftp.c
+++ b/epan/dissectors/packet-ftp.c
@@ -315,7 +315,7 @@ dissect_ftp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
hf_ftp_request_command, tvb, offset,
tokenlen, FALSE);
}
- if (strncmp(line, "PORT", tokenlen) == 0)
+ if (strncmp((char*)line, "PORT", tokenlen) == 0)
is_port_request = TRUE;
}
} else {
@@ -337,7 +337,7 @@ dissect_ftp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
* One-line reply, or first or last line
* of a multi-line reply.
*/
- tvb_get_nstringz0(tvb, offset, sizeof(code_str), code_str);
+ tvb_get_nstringz0(tvb, offset, sizeof(code_str), (guint8*)code_str);
code = strtoul(code_str, NULL, 10);
if (tree) {