aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ansi_a.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-10-13 03:17:53 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-10-13 03:17:53 +0000
commit056065d05596257c9a1d6c5d8eb50dae5474b748 (patch)
tree8010f647ef9d05c8dcdd39372c6942c91bc845b4 /epan/dissectors/packet-ansi_a.c
parent14ecc1ddd57ff0e24642e9e28342984b8e63ac27 (diff)
get rid of some strcpy()
svn path=/trunk/; revision=16210
Diffstat (limited to 'epan/dissectors/packet-ansi_a.c')
-rw-r--r--epan/dissectors/packet-ansi_a.c10
1 files changed, 5 insertions, 5 deletions
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
{