X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/06c58071014cbd46dde10c0cd3eda05b67d56805..ef99a405745deb2eaaa8fd1539fa6377495f9217:/include/xbt/dict.h diff --git a/include/xbt/dict.h b/include/xbt/dict.h index e9fdb4cc8f..bb45bef50d 100644 --- a/include/xbt/dict.h +++ b/include/xbt/dict.h @@ -29,7 +29,7 @@ BEGIN_DECL() char buff[512]; sprintf(buff,"some very precious data"); - xbt_dict_set(mydict,"my data", strdump(buff), free); + xbt_dict_set(mydict,"my data", strdup(buff), free); sprintf(buff,"another good stuff"); xbt_dict_set(mydict,"my data", strdup(buff), free); // previous data gets erased (and freed) by second add \endverbatim