summaryrefslogtreecommitdiffhomepage
path: root/ir/libcore
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/libcore
parent79a69c11cb3ce8cba41d5bf8585c9f2775e5b2ee (diff)
util: Add an use MEMCPY().
Diffstat (limited to 'ir/libcore')
-rw-r--r--ir/libcore/lc_printf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/libcore/lc_printf.c b/ir/libcore/lc_printf.c
index 3c6db96..7d4917d 100644
--- a/ir/libcore/lc_printf.c
+++ b/ir/libcore/lc_printf.c
@@ -415,7 +415,7 @@ int lc_evpprintf(const lc_arg_env_t *env, lc_appendable_t *app, const char *fmt,
lc_arg_t tmp;
name = (char*) malloc(sizeof(char) * (n + 1));
- memcpy(name, named, sizeof(char) * n);
+ MEMCPY(name, named, n);
name[n] = '\0';
tmp.name = name;