summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
Diffstat (limited to 'src/script')
-rw-r--r--src/script/script_scanner.cpp2
-rw-r--r--src/script/script_scanner.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/script/script_scanner.cpp b/src/script/script_scanner.cpp
index 578068592..2eb056049 100644
--- a/src/script/script_scanner.cpp
+++ b/src/script/script_scanner.cpp
@@ -110,7 +110,7 @@ void ScriptScanner::Reset()
void ScriptScanner::RegisterScript(ScriptInfo *info)
{
char script_original_name[1024];
- this->GetScriptName(info, script_original_name, sizeof(script_original_name));
+ this->GetScriptName(info, script_original_name, lastof(script_original_name));
strtolower(script_original_name);
char script_name[1024];
diff --git a/src/script/script_scanner.hpp b/src/script/script_scanner.hpp
index 792d36bae..5418dbd85 100644
--- a/src/script/script_scanner.hpp
+++ b/src/script/script_scanner.hpp
@@ -101,7 +101,7 @@ protected:
/**
* Get the script name how to store the script in memory.
*/
- virtual void GetScriptName(ScriptInfo *info, char *name, int len) = 0;
+ virtual void GetScriptName(ScriptInfo *info, char *name, const char *last) = 0;
/**
* Get the filename to scan for this type of script.