diff options
Diffstat (limited to 'packet-ftp.c')
-rw-r--r-- | packet-ftp.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/packet-ftp.c b/packet-ftp.c index 9db88105eb..e359b76ae0 100644 --- a/packet-ftp.c +++ b/packet-ftp.c @@ -2,7 +2,7 @@ * Routines for ftp packet dissection * Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com> * - * $Id: packet-ftp.c,v 1.5 1999/07/29 05:46:54 gram Exp $ + * $Id: packet-ftp.c,v 1.6 1999/08/18 00:57:50 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@unicom.net> @@ -44,17 +44,16 @@ #include "packet.h" #include "etypes.h" -extern packet_info pi; - static int proto_ftp = -1; void -dissect_ftp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree, int max_data) +dissect_ftp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) { proto_tree *ftp_tree, *ti; gchar rr[50], rd[1500]; int i1 = (u_char *)strchr(pd + offset, ' ') - (pd + offset); /* Where is that space */ int i2; + int max_data = pi.captured_len - offset; memset(rr, '\0', sizeof(rr)); memset(rd, '\0', sizeof(rd)); @@ -115,7 +114,7 @@ dissect_ftp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree, int } void -dissect_ftpdata(const u_char *pd, int offset, frame_data *fd, proto_tree *tree, int max_data) +dissect_ftpdata(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) { proto_tree *ti; |