Merge pull request #364 from alliedmodders/bug-6391

Fix maxlen in SetEntPropString not being initialized (bug 6391).
This commit is contained in:
Nicholas Hastings 2015-07-25 14:54:06 -04:00
commit 45f5ac64e1

View File

@ -2109,10 +2109,10 @@ static cell_t SetEntPropString(IPluginContext *pContext, const cell_t *params)
bIsStringIndex = true;
}
}
else
{
maxlen = DT_MAX_STRING_BUFFERSIZE;
}
// Only used if not string index.
maxlen = DT_MAX_STRING_BUFFERSIZE;
break;
}
default: