SAGA2: Fix object name loading
This commit is contained in:
parent
d295808363
commit
7e73510bb4
1 changed files with 1 additions and 2 deletions
|
@ -2524,8 +2524,7 @@ void initPrototypes(void) {
|
||||||
debugC(5, kDebugLoading, "Read string (size %d): %s", s.size(), s.c_str());
|
debugC(5, kDebugLoading, "Read string (size %d): %s", s.size(), s.c_str());
|
||||||
|
|
||||||
char *name = new char[s.size() + 1];
|
char *name = new char[s.size() + 1];
|
||||||
Common::strlcpy(name, s.c_str(), s.size());
|
Common::strlcpy(name, s.c_str(), s.size() + 1);
|
||||||
name[s.size()] = '\0';
|
|
||||||
nameList.push_back(name);
|
nameList.push_back(name);
|
||||||
}
|
}
|
||||||
nameListCount = count;
|
nameListCount = count;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue