mirror of
https://github.com/glest/glest-source.git
synced 2025-08-12 03:14:00 +02:00
- round #2 of coverity bug fixes
This commit is contained in:
@@ -922,6 +922,7 @@ void MapPreview::saveToFile(const string &path) {
|
||||
strncpy(header.title, title.c_str(), MAX_TITLE_LENGTH);
|
||||
strncpy(header.author, author.c_str(), MAX_AUTHOR_LENGTH);
|
||||
strncpy(header.version2.short_desc, desc.c_str(), MAX_DESCRIPTION_LENGTH_VERSION2);
|
||||
header.version2.short_desc[MAX_DESCRIPTION_LENGTH_VERSION2] = 0;
|
||||
header.version2.magic= 0x01020304;
|
||||
header.version2.cliffLevel= cliffLevel;
|
||||
header.version2.cameraHeight= cameraHeight;
|
||||
|
Reference in New Issue
Block a user