aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wmem
diff options
context:
space:
mode:
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;
}