mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-22 16:04:17 +00:00
Use USHRT_MAX instead of MAXWORD (#975)
This commit is contained in:

committed by
GitHub

parent
76435d803f
commit
eeb81b7223
@@ -202,10 +202,10 @@ void MxStillPresenter::ParseExtra()
|
||||
char* extraData;
|
||||
m_action->GetExtra(extraLength, extraData);
|
||||
|
||||
if (extraLength & MAXWORD) {
|
||||
if (extraLength & USHRT_MAX) {
|
||||
char extraCopy[512];
|
||||
memcpy(extraCopy, extraData, extraLength & MAXWORD);
|
||||
extraCopy[extraLength & MAXWORD] = '\0';
|
||||
memcpy(extraCopy, extraData, extraLength & USHRT_MAX);
|
||||
extraCopy[extraLength & USHRT_MAX] = '\0';
|
||||
|
||||
char output[512];
|
||||
if (KeyValueStringParse(output, g_strVISIBILITY, extraCopy)) {
|
||||
|
Reference in New Issue
Block a user