Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
be cleaner with memory
[simgrid.git] / src / smpi / include / smpi_file.hpp
index 72efd93..fa3b505 100644 (file)
@@ -151,7 +151,7 @@ class File{
     }\r
     XBT_DEBUG("will have to access %lld from my chunk", totreads);\r
 \r
-    char* sendbuf= static_cast<char *>(smpi_get_tmp_sendbuffer(totreads));\r
+    char* sendbuf= static_cast<char *>(smpi_get_tmp_sendbuffer(total_sent));\r
 \r
     if(totreads>0){\r
       seek(min_offset, MPI_SEEK_SET);\r