From fe857de66379d420e4f6b25365de0b19f6170023 Mon Sep 17 00:00:00 2001 From: MysterD Date: Sat, 22 Jan 2022 15:06:14 -0800 Subject: [PATCH] Fixed linux compile errors --- src/game/level_info.h | 2 +- src/pc/controller/controller_bind_mapping.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/level_info.h b/src/game/level_info.h index 2c81e5ad..0a9a4dec 100644 --- a/src/game/level_info.h +++ b/src/game/level_info.h @@ -1,7 +1,7 @@ #ifndef LEVEL_INFO_H #define LEVEL_INFO_H -#include +#include const char* get_level_name(s16 courseNum, s16 levelNum, s16 areaIndex); diff --git a/src/pc/controller/controller_bind_mapping.c b/src/pc/controller/controller_bind_mapping.c index ab058efe..02c0c4d2 100644 --- a/src/pc/controller/controller_bind_mapping.c +++ b/src/pc/controller/controller_bind_mapping.c @@ -147,7 +147,7 @@ const char* translate_bind_to_name(int bind) { char* space = strchr(sname, ' '); if (space == NULL) { return sname; } - sprintf_s(name, 10, "%c%s", sname[0], (space + 1)); + snprintf(name, 10, "%c%s", sname[0], (space + 1)); #endif return name; }