summaryrefslogtreecommitdiffhomepage
path: root/ir/stat
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2014-10-24 22:23:31 +0200
committerChristoph Mallon <mallon@cs.uni-saarland.de>2014-10-27 14:56:56 +0100
commit18489c39ee20b6b0f6cef5f79981ec70c042a77c (patch)
treeb09e9ac10c810a00bf944977fa807eb89c90e84d /ir/stat
parent79a69c11cb3ce8cba41d5bf8585c9f2775e5b2ee (diff)
util: Add an use MEMCPY().
Diffstat (limited to 'ir/stat')
-rw-r--r--ir/stat/pattern_dmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/stat/pattern_dmp.c b/ir/stat/pattern_dmp.c
index 1c09d83..bb5a037 100644
--- a/ir/stat/pattern_dmp.c
+++ b/ir/stat/pattern_dmp.c
@@ -387,7 +387,7 @@ pattern_dumper_t *new_vcg_dumper(const char *vcg_name, unsigned max_pattern)
if (res) {
FILE *f;
- memcpy(res, &vcg_dump, sizeof(*res));
+ *res = vcg_dump;
priv = (vcg_private_t *)(res + 1);
memset(priv, 0, sizeof(*priv));