@@ -846,13 +846,13 @@ qvi_hwloc_bitmap_asprintf(
846
846
if (topo) {
847
847
int num_pus = hwloc_get_nbobjs_inside_cpuset_by_type (topo, cpuset, HWLOC_OBJ_PU);
848
848
hwloc_obj_t obj_pu = NULL ;
849
- char str[64 ] = {0 };
849
+ char str[128 ] = {0 };
850
850
sprintf (str," %s" ," | cpubind (logical)=[" );
851
851
for (int idx = 0 ; idx < num_pus ; idx++){
852
852
char str2[64 ] = {0 };
853
853
obj_pu = hwloc_get_next_obj_inside_cpuset_by_type (topo, cpuset, HWLOC_OBJ_PU, obj_pu);
854
854
sprintf (str2," %i%s" ,obj_pu->logical_index , idx == (num_pus-1 ) ? " ]" :" ," );
855
- strncat (str,str2, strlen (str2) );
855
+ strcat (str,str2);
856
856
}
857
857
858
858
char *newstr = (char *)malloc (sizeof (char )*(strlen (str)+strlen (iresult)+1 ));
@@ -882,13 +882,13 @@ qvi_hwloc_bitmap_list_asprintf(
882
882
if (topo) {
883
883
int num_pus = hwloc_get_nbobjs_inside_cpuset_by_type (topo, cpuset, HWLOC_OBJ_PU);
884
884
hwloc_obj_t obj_pu = NULL ;
885
- char str[64 ] = {0 };
885
+ char str[128 ] = {0 };
886
886
sprintf (str," %s" ," | cpubind (logical)=[" );
887
887
for (int idx = 0 ; idx < num_pus ; idx++){
888
888
char str2[64 ] = {0 };
889
889
obj_pu = hwloc_get_next_obj_inside_cpuset_by_type (topo, cpuset, HWLOC_OBJ_PU, obj_pu);
890
890
sprintf (str2," %i%s" ,obj_pu->logical_index , idx == (num_pus-1 ) ? " ]" :" ," );
891
- strncat (str,str2, strlen (str2) );
891
+ strcat (str,str2);
892
892
}
893
893
894
894
char *newstr = (char *)malloc (sizeof (char )*(strlen (str)+strlen (iresult)+1 ));
0 commit comments