{
// Fill in 8-bit versions of names for diffutils (WinMerge doesn't use these)
USES_CONVERSION;
- m_inf[i].name = T2CA(m_sFilepath[i]);
+ m_inf[i].name = strdup(T2CA(m_sFilepath[i]));
+ if (m_inf[i].name == NULL)
+ return false;
// Open up file descriptors
// Always use O_BINARY mode, to avoid terminating file read on ctrl-Z (DOS EOF)
// open file handles might be leftover from a failure in DiffFileData::OpenFiles
for (int i=0; i<2; ++i)
{
+ free((void *)m_inf[i].name);
+ m_inf[i].name = NULL;
+
if (m_inf[i].desc > 0)
{
close(m_inf[i].desc);
Src: Merge.cpp Merge.h
FIX wrong checkin comments and wrong patch number and description
in previous checkin.
+ PATCH: [ 906934 ] Fix filenames in patch-files
+ Src: DiffWrapper.cpp
2004-02-28 WinMerge experimental release 2.1.5.12 (cvs)