mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-10 06:01:52 +00:00
fatal_font: Add missing va_end() calls to PrintFormatLine() and PrintFormat() (#497)
Fairly self-explanatory. Ensures va_start() is balanced with va_end()
This commit is contained in:
parent
3459968ac3
commit
f44a730a90
1 changed files with 8 additions and 6 deletions
|
@ -126,11 +126,12 @@ void FontManager::PrintLine(const char *str) {
|
|||
}
|
||||
|
||||
void FontManager::PrintFormatLine(const char *format, ...) {
|
||||
char char_buf[0x400];
|
||||
|
||||
va_list va_arg;
|
||||
va_start(va_arg, format);
|
||||
|
||||
char char_buf[0x400];
|
||||
vsnprintf(char_buf, sizeof(char_buf), format, va_arg);
|
||||
va_end(va_arg);
|
||||
|
||||
PrintLine(char_buf);
|
||||
}
|
||||
|
@ -140,11 +141,12 @@ void FontManager::Print(const char *str) {
|
|||
}
|
||||
|
||||
void FontManager::PrintFormat(const char *format, ...) {
|
||||
char char_buf[0x400];
|
||||
|
||||
va_list va_arg;
|
||||
va_start(va_arg, format);
|
||||
|
||||
char char_buf[0x400];
|
||||
vsnprintf(char_buf, sizeof(char_buf), format, va_arg);
|
||||
va_end(va_arg);
|
||||
|
||||
Print(char_buf);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue