diff --git a/Code/Seg/IPOLdemo/mainIPOL.cpp b/Code/Seg/IPOLdemo/mainIPOL.cpp
index 013bdc6714e804bf562e37e669944c4aac117b16..703b2ddeb08c4d19938127fcc699664ab93b9a39 100755
--- a/Code/Seg/IPOLdemo/mainIPOL.cpp
+++ b/Code/Seg/IPOLdemo/mainIPOL.cpp
@@ -32,7 +32,7 @@ int main (int argc, char *argv[])
   // - output file
   string output_filename = argv[2];
   ofstream fout;  
-  fout.open(output_filename.c_str(), std::fstream::out);
+  fout.open(output_filename, std::fstream::out);
 
   
 // Calcul de la carte de gradient (utilise qt)