diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2008-01-24 23:01:37 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2008-01-24 23:01:37 +0000 |
commit | 2df21cb1b7afdc36eb58a42c429f743d16d81a6e (patch) | |
tree | 4ee6de345288ff1cd3b9fec71b014bb0106f87f9 /asn1 | |
parent | c2f444f65691cbc3f5dd93d4f898c3bfff6f9f2b (diff) |
Fixed some strcpy -> strncpy/g_snprintf cleanups.
Removed a debug printout in t38.
svn path=/trunk/; revision=24188
Diffstat (limited to 'asn1')
-rw-r--r-- | asn1/t38/packet-t38-template.c | 5 |
1 files changed, 2 insertions, 3 deletions
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)); |