From 056065d05596257c9a1d6c5d8eb50dae5474b748 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Thu, 13 Oct 2005 03:17:53 +0000 Subject: get rid of some strcpy() svn path=/trunk/; revision=16210 --- epan/dissectors/packet-ansi_a.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'epan/dissectors/packet-ansi_a.c') diff --git a/epan/dissectors/packet-ansi_a.c b/epan/dissectors/packet-ansi_a.c index da3e7db2bc..c648d1bf64 100644 --- a/epan/dissectors/packet-ansi_a.c +++ b/epan/dissectors/packet-ansi_a.c @@ -1373,7 +1373,7 @@ elem_mid(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_ "%s : Type of Identity: No Identity Code", a_bigbuf); - strcpy(add_string, " - No Identity Code"); + g_snprintf(add_string, string_len, " - No Identity Code"); curr_offset++; @@ -1456,7 +1456,7 @@ elem_mid(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_ "%s : Type of Identity: Interface Directory Number", a_bigbuf); - strcpy(add_string, " - Interface Directory Number"); + g_snprintf(add_string, string_len, " - Interface Directory Number"); curr_offset++; @@ -1489,7 +1489,7 @@ elem_mid(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_ "%s : Type of Identity: TMSI", a_bigbuf); - strcpy(add_string, " - TMSI"); + g_snprintf(add_string, string_len, " - TMSI"); curr_offset++; @@ -1539,7 +1539,7 @@ elem_mid(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_ proto_tree_add_text(tree, tvb, curr_offset, len, "Format Unknown"); - strcpy(add_string, " - Format Unknown"); + g_snprintf(add_string, string_len, " - Format Unknown"); curr_offset += len; break; @@ -1697,7 +1697,7 @@ elem_cause(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *ad curr_offset++; - strcpy(add_string, " - (National Cause)"); + g_snprintf(add_string, string_len, " - (National Cause)"); } else { -- cgit v1.2.3