Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/utils/utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,7 @@ int mc_TerminalInput::LoadDataFromLog(const char* fileName)
int err;
int start,pos;

strcpy(m_Line,"");
fHan=open(fileName,_O_BINARY | O_RDONLY);
if(fHan<0)
{
Expand Down Expand Up @@ -958,7 +959,6 @@ int mc_TerminalInput::LoadDataFromLog(const char* fileName)
pos++;
}

strcpy(m_Line,"");
start=pos+24;
while(start<size)
{
Expand Down Expand Up @@ -1939,4 +1939,4 @@ void mc_SwapBytes(void *vptr,uint32_t size)
ptr[i]=ptr[size-i-1];
ptr[size-i-1]=t;
}
}
}