(svn r16024) -Codechange: harden string copying on places where it's possible

This commit is contained in:
rubidium
2009-04-10 20:37:05 +00:00
parent 4bf3508680
commit bee930f9b3
8 changed files with 16 additions and 16 deletions

View File

@@ -1508,7 +1508,7 @@ public:
this->vscroll.cap--;
case SLD_SAVE_GAME: this->GenerateFileName(); break;
case SLD_SAVE_SCENARIO: strcpy(this->edit_str_buf, "UNNAMED"); break;
case SLD_SAVE_SCENARIO: strecpy(this->edit_str_buf, "UNNAMED", &this->edit_str_buf[edit_str_size - 1]); break;
default: break;
}