X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1f188ab63f4d1e02df1806c72b102df90fb69a46..781ddad170710424ea23579b1eeaa4314253ec64:/src/xbt/xbt_str.c diff --git a/src/xbt/xbt_str.c b/src/xbt/xbt_str.c index d18a94588f..e43bdc949d 100644 --- a/src/xbt/xbt_str.c +++ b/src/xbt/xbt_str.c @@ -708,6 +708,7 @@ char* xbt_str_from_file(FILE *file) { xbt_strbuff_t buff = xbt_strbuff_new(); char *res; char bread[1024]; + memset(bread,0,1024); while (!feof(file)) { fread(bread, 1, 1023, file);