summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-telnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-telnet.c')
-rw-r--r--epan/dissectors/packet-telnet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-telnet.c b/epan/dissectors/packet-telnet.c
index 1c81e66783..11debe7e9c 100644
--- a/epan/dissectors/packet-telnet.c
+++ b/epan/dissectors/packet-telnet.c
@@ -873,7 +873,7 @@ dissect_authentication_subopt(packet_info *pinfo, const char *optname _U_, tvbuf
case TN_AC_NAME:
if(len<255){
name=ep_alloc(256);
- tvb_memcpy(tvb, name, offset, len);
+ tvb_memcpy(tvb, (guint8*)name, offset, len);
name[len]=0;
} else {
name="<...name too long...>";