aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wmem/wmem_strutl.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/wmem/wmem_strutl.c')
-rw-r--r--epan/wmem/wmem_strutl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/wmem/wmem_strutl.c b/epan/wmem/wmem_strutl.c
index 009abf1d80..915e9e5dd8 100644
--- a/epan/wmem/wmem_strutl.c
+++ b/epan/wmem/wmem_strutl.c
@@ -31,6 +31,7 @@
#endif
#include <glib.h>
+#include <glib/gprintf.h>
#include "wmem_core.h"
#include "wmem_allocator.h"
@@ -140,7 +141,7 @@ wmem_strdup_vprintf(wmem_allocator_t *allocator, const gchar *fmt, va_list ap)
dst = (gchar *)wmem_alloc(allocator, needed_len);
- vsprintf(dst, fmt, ap2);
+ vsprintf_s(dst, needed_len, fmt, ap2);
va_end(ap2);