mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
some cleanup, housekeeping for error cases and increased a few buffer sizes that are overflown by its content.
Thanks to Fatalis for the initial patch and pointing us to cppcheck. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5004 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
8281564b5c
commit
43051ffe41
9 changed files with 88 additions and 67 deletions
|
@ -75,11 +75,10 @@ inline void CON_BlankRow(const int y)
|
|||
{
|
||||
int columns = 0, rows = 0;
|
||||
CON_GetMetrics(&columns, &rows);
|
||||
char* blank = new char[columns];
|
||||
char blank[columns];
|
||||
std::fill(blank, blank + columns, ' ');
|
||||
blank[columns-1] = '\0';
|
||||
CON_Printf(0, y, "%s", blank);
|
||||
delete blank;
|
||||
}
|
||||
|
||||
#define CON_PrintRow(x, y, ...) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue