aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--epan/to_str.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/to_str.c b/epan/to_str.c
index 6368b5a534..c526aca19e 100644
--- a/epan/to_str.c
+++ b/epan/to_str.c
@@ -979,8 +979,8 @@ decode_bitfield_value(char *buf, const guint32 val, const guint32 mask, const in
char *p;
p = other_decode_bitfield_value(buf, val, mask, width);
- strcpy(p, " = ");
- p += 3;
+ p = g_stpcpy(p, " = ");
+
return p;
}