Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Give the correct address for the source of memcpy
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 23 May 2012 12:05:23 +0000 (14:05 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 23 May 2012 12:54:05 +0000 (14:54 +0200)
src/xbt/datadesc/ddt_parse.c

index 9947261..a3f4694 100644 (file)
@@ -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();
 }