summaryrefslogtreecommitdiff
path: root/soh/src/code/fault.c
diff options
context:
space:
mode:
authorlouist103 <35883445+louist103@users.noreply.github.com>2023-06-27 19:53:35 -0400
committerGitHub <noreply@github.com>2023-06-27 19:53:35 -0400
commitacfc04d0acdfc83f4dce326844779195bfc51197 (patch)
tree60d25ea9d39667d6e634471123bdc3928c1320a6 /soh/src/code/fault.c
parent7c5efb278582a7b438f58a804dd38c6795c8e0c9 (diff)
Add an error for implicit functions (#3017)
* Add the flag and fix errors * switch assert and skin matrix * new LUS * Use normal assert * hopefully fix WiiU Signed-off-by: Louis <louist103@pop-os.localdomain> --------- Signed-off-by: Louis <louist103@pop-os.localdomain> Co-authored-by: Louis <louist103@pop-os.localdomain> Co-authored-by: Christopher Leggett <chris@leggett.dev>
Diffstat (limited to 'soh/src/code/fault.c')
-rw-r--r--soh/src/code/fault.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/soh/src/code/fault.c b/soh/src/code/fault.c
index f7414766a..fe7f7f966 100644
--- a/soh/src/code/fault.c
+++ b/soh/src/code/fault.c
@@ -1,6 +1,6 @@
#include "global.h"
#include "vt.h"
-#include "alloca.h"
+#include <stdio.h>
// data
const char* sExceptionNames[] = {
@@ -1124,6 +1124,6 @@ void Fault_AddHungupAndCrashImpl(const char* arg0, const char* arg1) {
void Fault_AddHungupAndCrash(const char* filename, u32 line) {
char msg[256];
- sprintf(msg, "HungUp %s:%d", filename, line);
+ snprintf(msg, sizeof(msg), "HungUp %s:%d", filename, line);
Fault_AddHungupAndCrashImpl(msg, NULL);
}