mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-31 04:20:34 +00:00
- a few more buffers converted.
# Conflicts: # src/f_wipe.cpp
This commit is contained in:
parent
f744b9a0f8
commit
9a8e4a6285
1 changed files with 3 additions and 4 deletions
|
@ -150,9 +150,9 @@ void FConsoleBuffer::AddText(int printlevel, const char *text, FILE *logfile)
|
|||
void FConsoleBuffer::WriteLineToLog(FILE *LogFile, const char *outline)
|
||||
{
|
||||
// Strip out any color escape sequences before writing to the log file
|
||||
char * copy = new char[strlen(outline)+1];
|
||||
TArray<char> copy(strlen(outline)+1);
|
||||
const char * srcp = outline;
|
||||
char * dstp = copy;
|
||||
char * dstp = copy.Data();
|
||||
|
||||
while (*srcp != 0)
|
||||
{
|
||||
|
@ -193,8 +193,7 @@ void FConsoleBuffer::WriteLineToLog(FILE *LogFile, const char *outline)
|
|||
}
|
||||
*dstp=0;
|
||||
|
||||
fputs (copy, LogFile);
|
||||
delete [] copy;
|
||||
fputs (copy.Data(), LogFile);
|
||||
fflush (LogFile);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue