aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-10-08 11:15:15 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-10-08 11:15:15 +0000
commit21ec37f2873cfcec900f17ba46d698d39cf3fa7f (patch)
treea01b0cd615ef691e17827ca2327d1dcca047aa9b /epan
parent6e6952badfd3282d5ae60c48f19055dd52d2a019 (diff)
downloadwireshark-21ec37f2873cfcec900f17ba46d698d39cf3fa7f.tar.gz
wireshark-21ec37f2873cfcec900f17ba46d698d39cf3fa7f.tar.bz2
wireshark-21ec37f2873cfcec900f17ba46d698d39cf3fa7f.zip
strcpy() removal
svn path=/trunk/; revision=16163
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-gsm_a.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-gsm_a.c b/epan/dissectors/packet-gsm_a.c
index 3c0cb926ea..b34a23eac6 100644
--- a/epan/dissectors/packet-gsm_a.c
+++ b/epan/dissectors/packet-gsm_a.c
@@ -1619,7 +1619,7 @@ be_cause(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_
curr_offset++;
if (add_string)
- strcpy(add_string, " - (National Cause)");
+ g_snprintf(add_string, string_len, " - (National Cause)");
}
else
{
@@ -3461,7 +3461,7 @@ de_mid(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_st
proto_tree_add_item(tree, hf_gsm_a_mobile_identity_type, tvb, curr_offset, 1, FALSE);
if (add_string)
- strcpy(add_string, " - No Identity Code");
+ g_snprintf(add_string, string_len, " - No Identity Code");
curr_offset++;
@@ -3593,7 +3593,7 @@ de_mid(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_st
"Format Unknown");
if (add_string)
- strcpy(add_string, " - Format Unknown");
+ g_snprintf(add_string, string_len, " - Format Unknown");
curr_offset += len;
break;