From bee930f9b3b9dad52945c1186227519cf9d566aa Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 10 Apr 2009 20:37:05 +0000 Subject: (svn r16024) -Codechange: harden string copying on places where it's possible --- src/ai/ai_scanner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai') diff --git a/src/ai/ai_scanner.cpp b/src/ai/ai_scanner.cpp index af452f086..ab9036cf7 100644 --- a/src/ai/ai_scanner.cpp +++ b/src/ai/ai_scanner.cpp @@ -52,7 +52,7 @@ AIScanner::AIScanner() : /* Create the dummy AI */ this->engine->ResetCrashed(); - strcpy(this->main_script, "%_dummy"); + strecpy(this->main_script, "%_dummy", lastof(this->main_script)); extern void AI_CreateAIInfoDummy(HSQUIRRELVM vm); AI_CreateAIInfoDummy(this->engine->GetVM()); } -- cgit v1.2.3-70-g09d2