summaryrefslogtreecommitdiff
path: root/src/script/api/script_controller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/api/script_controller.cpp')
-rw-r--r--src/script/api/script_controller.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/api/script_controller.cpp b/src/script/api/script_controller.cpp
index d8489da49..7f8df248d 100644
--- a/src/script/api/script_controller.cpp
+++ b/src/script/api/script_controller.cpp
@@ -133,7 +133,7 @@ ScriptController::~ScriptController()
LoadedLibraryList::iterator iter = controller->loaded_library.find(library_name);
if (iter != controller->loaded_library.end()) {
- ttd_strlcpy(fake_class, (*iter).second, sizeof(fake_class));
+ strecpy(fake_class, (*iter).second, lastof(fake_class));
} else {
int next_number = ++controller->loaded_library_count;