Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
leaks --
authordegomme <augustin.degomme@unibas.ch>
Mon, 25 Apr 2016 23:58:03 +0000 (01:58 +0200)
committerdegomme <augustin.degomme@unibas.ch>
Mon, 25 Apr 2016 23:58:03 +0000 (01:58 +0200)
src/xbt/config.cpp

index 7578fbd..20b6a5e 100644 (file)
@@ -255,7 +255,7 @@ void xbt_cfg_register_alias(const char *newname, const char *oldname)
   res = new s_xbt_cfgelm_t();
   XBT_DEBUG("Register cfg alias %s -> %s)",oldname,newname);
 
-  res->desc = bprintf("Deprecated alias for %s",newname);
+  res->desc = std::string("Deprecated alias for ")+std::string(newname);
   res->type = xbt_cfgelm_alias;
   res->content = (xbt_dynar_t)newname;