mirror of
https://github.com/zeldaret/mm.git
synced 2026-07-10 14:04:55 -04:00
printutils OK, add va_end to variadic functions (#294)
* printutils OK * Add va_end to every variadic function
This commit is contained in:
@@ -153,6 +153,8 @@ void FaultDrawer_Printf(const char* fmt, ...) {
|
||||
va_start(args, fmt);
|
||||
|
||||
FaultDrawer_VPrintf(fmt, args);
|
||||
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
void FaultDrawer_DrawText(s32 x, s32 y, const char* fmt, ...) {
|
||||
@@ -161,6 +163,8 @@ void FaultDrawer_DrawText(s32 x, s32 y, const char* fmt, ...) {
|
||||
|
||||
FaultDrawer_SetCursor(x, y);
|
||||
FaultDrawer_VPrintf(fmt, args);
|
||||
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
void FaultDrawer_SetDrawerFB(void* fb, u16 w, u16 h) {
|
||||
|
||||
Reference in New Issue
Block a user