summaryrefslogtreecommitdiff
path: root/src/toBeSorted/file_manager.cpp
diff options
context:
space:
mode:
authorrobojumper <robojumper@gmail.com>2024-05-25 22:47:39 +0200
committerrobojumper <robojumper@gmail.com>2024-06-02 00:06:17 +0200
commiteea008649598ace5e625ec9771cb5291de04420c (patch)
treecf237e482909497fb3071d8b10a29aef824db754 /src/toBeSorted/file_manager.cpp
parent556fd33fc329f7634f9b0dadc94011bd46dc6b13 (diff)
Expatriate the inline string methods
Diffstat (limited to 'src/toBeSorted/file_manager.cpp')
-rw-r--r--src/toBeSorted/file_manager.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/toBeSorted/file_manager.cpp b/src/toBeSorted/file_manager.cpp
index d6bbd9a9..33f5ec69 100644
--- a/src/toBeSorted/file_manager.cpp
+++ b/src/toBeSorted/file_manager.cpp
@@ -1,8 +1,7 @@
#include "toBeSorted/file_manager.h"
#include "f/f_base.h"
#include <m/m_heap.h>
-// #include "libc.h"
-#include <MSL_C/string.h>
+#include <inline_string.h>
// This class here makes no sense and the name might
// be a total misnomer, but this gets the sinit section correct
@@ -142,7 +141,7 @@ inline void strnsth(char *dest, const char *src, size_t max_len) {
char buf[0x20];
buf[0] = '\0';
- strnsth(buf, "F405", 0x20);
+ inline_strncpy(buf, "F405", sizeof(buf));
file->setAreaT1(buf);
file->room_id_t1 = 0;
file->forced_layer_t1 = 0;