]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/textfile.cpp
patch from Dimitri fixing crashes when decoding the invalid GIFs
[wxWidgets.git] / src / common / textfile.cpp
index 26053922cd0ada639c9c47e9758cdc7b4a9de14e..5f4dd6a2687ecfb3b641190e18ecf415847af994 100644 (file)
@@ -177,7 +177,7 @@ bool wxTextFile::OnWrite(wxTextFileType typeNew, wxMBConv& conv)
     if ( !fn.IsAbsolute() )
         fn.Normalize();
 
-    wxTempFile fileTmp(fn.GetFullName());
+    wxTempFile fileTmp(fn.GetFullPath());
 
     if ( !fileTmp.IsOpened() ) {
         wxLogError(_("can't write buffer '%s' to disk."), m_strBufferName.c_str());