mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-18 08:11:21 +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
@ -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 New Issue
Block a user