From 2df21cb1b7afdc36eb58a42c429f743d16d81a6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Thu, 24 Jan 2008 23:01:37 +0000 Subject: Fixed some strcpy -> strncpy/g_snprintf cleanups. Removed a debug printout in t38. svn path=/trunk/; revision=24188 --- asn1/t38/packet-t38-template.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'asn1') diff --git a/asn1/t38/packet-t38-template.c b/asn1/t38/packet-t38-template.c index a87467526c..3dea633819 100644 --- a/asn1/t38/packet-t38-template.c +++ b/asn1/t38/packet-t38-template.c @@ -232,8 +232,6 @@ void t38_add_address(packet_info *pinfo, return; } - printf("#%u: t38_add_address(%s, %u, %u, %s, %u\n", pinfo->fd->num, address_to_str(addr), port, other_port, setup_method, setup_frame_number); - SET_ADDRESS(&null_addr, AT_NONE, 0, NULL); /* @@ -480,7 +478,8 @@ init_t38_info_conv(packet_info *pinfo) /* copy the t38 conversation info to the packet t38 conversation */ p_t38_packet_conv = se_alloc(sizeof(t38_conv)); - strcpy(p_t38_packet_conv->setup_method, p_t38_conv->setup_method); + strncpy(p_t38_packet_conv->setup_method, p_t38_conv->setup_method, MAX_T38_SETUP_METHOD_SIZE); + p_t38_packet_conv->setup_method[MAX_T38_SETUP_METHOD_SIZE] = '\0'; p_t38_packet_conv->setup_frame_number = p_t38_conv->setup_frame_number; memcpy(&(p_t38_packet_conv->src_t38_info), &(p_t38_conv->src_t38_info), sizeof(t38_conv_info)); -- cgit v1.2.3