Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix build with paranoid flags: remove redundant '\0' in string.
[simgrid.git] / src / instr / jedule / jedule_output.c
index cafd545..7cb7af0 100644 (file)
@@ -86,9 +86,9 @@ static void get_hierarchy_string(jed_simgrid_container_t container, char *outbuf
     
     xbt_dynar_foreach(hier_list, iter, number) {
         if( iter != length-1 ) {
-            sprintf(buf, "%d.\0", number);
+            sprintf(buf, "%d.", number);
         } else {
-            sprintf(buf, "%d\0", number);
+            sprintf(buf, "%d", number);
         }
         strcat(outbuf, buf);
     }