Fixed linux compile errors

This commit is contained in:
MysterD 2022-01-22 15:06:14 -08:00
parent bb4ae0abf1
commit 9dba5b3917
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#ifndef LEVEL_INFO_H
#define LEVEL_INFO_H
#include <PR\ultratypes.h>
#include <PR/ultratypes.h>
const char* get_level_name(s16 courseNum, s16 levelNum, s16 areaIndex);

View File

@ -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;
}