aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wmem
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2016-05-10 20:46:37 -0400
committerMichael Mann <mmann78@netscape.net>2016-05-11 03:16:43 +0000
commit9d08ef3f634c4e26659c6a9dd4c3f1580715aeef (patch)
treed8875b2d8af62614cc5bb5a5b30121c5c3ec7fb2 /epan/wmem
parent4d3df66af44b563a1c6d6fe03fcdf09f93877dba (diff)
Remove strcpy from wmem_strbuf.c
This removes all strcpy calls from Wireshark provided code (only ones remaining are in lemon.c) Change-Id: I7a467fc3e10cc94c97196ecea3277a5375bc14b7 Reviewed-on: https://code.wireshark.org/review/15347 Reviewed-by: Evan Huus <eapache@gmail.com> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/wmem')
-rw-r--r--epan/wmem/wmem_strbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/wmem/wmem_strbuf.c b/epan/wmem/wmem_strbuf.c
index 0a0f1a5f56..571e98754b 100644
--- a/epan/wmem/wmem_strbuf.c
+++ b/epan/wmem/wmem_strbuf.c
@@ -98,7 +98,7 @@ wmem_strbuf_new(wmem_allocator_t *allocator, const gchar *str)
strbuf = wmem_strbuf_sized_new(allocator, alloc_len, 0);
if (str && len > 0) {
- strcpy(strbuf->str, str);
+ g_strlcpy(strbuf->str, str, alloc_len);
strbuf->len = len;
}