X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/421c31008bb00af543930a0205872f5b8db7f129..c7776b0eba6a1d477144244726ee9067ed723db6:/src/smpi/smpi_mpi_dt.c diff --git a/src/smpi/smpi_mpi_dt.c b/src/smpi/smpi_mpi_dt.c index dd279e64b1..ab2d75ba7a 100644 --- a/src/smpi/smpi_mpi_dt.c +++ b/src/smpi/smpi_mpi_dt.c @@ -1,7 +1,7 @@ /* smpi_mpi_dt.c -- MPI primitives to handle datatypes */ /* FIXME: a very incomplete implementation */ -/* Copyright (c) 2009-2014. The SimGrid Team. +/* Copyright (c) 2009-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -187,7 +187,7 @@ int smpi_datatype_dup(MPI_Datatype datatype, MPI_Datatype* new_t) memcpy((*new_t)->substruct, datatype->substruct, sizeof(s_smpi_mpi_struct_t)); } if(datatype->name) - (*new_t)->name = strdup(datatype->name); + (*new_t)->name = xbt_strdup(datatype->name); if(datatype->attributes !=NULL){ (*new_t)->attributes=xbt_dict_new(); xbt_dict_cursor_t cursor = NULL; @@ -237,7 +237,7 @@ void smpi_datatype_get_name(MPI_Datatype datatype, char* name, int* length){ } void smpi_datatype_set_name(MPI_Datatype datatype, char* name){ - datatype->name = strdup(name);; + datatype->name = xbt_strdup(name);; } int smpi_datatype_copy(void *sendbuf, int sendcount, MPI_Datatype sendtype, @@ -1779,4 +1779,3 @@ int smpi_mpi_unpack(void* inbuf, int insize, int* position, void* outbuf, int ou *position += outcount * size; return MPI_SUCCESS; } -