From 207a23879665c82985c8c3c9ba30675badd9ad20 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Wed, 23 May 2012 14:05:23 +0200 Subject: [PATCH] Give the correct address for the source of memcpy --- src/xbt/datadesc/ddt_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xbt/datadesc/ddt_parse.c b/src/xbt/datadesc/ddt_parse.c index 9947261eb7..a3f46942cd 100644 --- a/src/xbt/datadesc/ddt_parse.c +++ b/src/xbt/datadesc/ddt_parse.c @@ -219,7 +219,7 @@ static void add_free_f(xbt_dynar_t dynar, void_f_pvoid_t free_f) XBT_IN(); xbt_dynar_pop(dynar, &former); - memcpy(former.type->extra, free_f, sizeof(free_f)); + memcpy(former.type->extra, &free_f, sizeof(free_f)); xbt_dynar_push(dynar, &former); XBT_OUT(); } -- 2.20.1