mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 16:34:06 +00:00
Remove USHRT_MAX from ParseExtra functions (#1086)
This commit is contained in:
@@ -429,10 +429,10 @@ void LegoWorldPresenter::ParseExtra()
|
||||
char* extraData;
|
||||
m_action->GetExtra(extraLength, extraData);
|
||||
|
||||
if (extraLength & USHRT_MAX) {
|
||||
if (extraLength) {
|
||||
char extraCopy[1024];
|
||||
memcpy(extraCopy, extraData, extraLength & USHRT_MAX);
|
||||
extraCopy[extraLength & USHRT_MAX] = '\0';
|
||||
memcpy(extraCopy, extraData, extraLength);
|
||||
extraCopy[extraLength] = '\0';
|
||||
|
||||
char output[1024];
|
||||
if (KeyValueStringParse(output, g_strWORLD, extraCopy)) {
|
||||
|
Reference in New Issue
Block a user