diff --git a/FitsIOServer/fitsfile.cc b/FitsIOServer/fitsfile.cc
index ebef697e9292d27306e56cb65d3fc1a5955500dd..5f4f44aad08f7cd7422b5339a3d281a69e38e30a 100644
--- a/FitsIOServer/fitsfile.cc
+++ b/FitsIOServer/fitsfile.cc
@@ -1500,7 +1500,7 @@ void FitsOutFile::PutBinTabLine(long NoLine,  BnTblLine& ligne) const
   
   for (k=0; k<ligne.cdata_.size(); k++, ncol++)
     {
-      fits_write_col(fptr_,TSTRING,ncol+1,NoLine+1,1,1, strdup(ligne.cdata_[k].c_str()) ,&status);
+      fits_write_col(fptr_,TSTRING,ncol+1,NoLine+1,1,1, (void*)ligne.cdata_[k].c_str() ,&status);
       if( status ) printerror( status, "PutBinTabLine : erreur ecriture caracteres"  );
     }
 }