mirror of
https://github.com/stascorp/rdpwrap.git
synced 2025-08-19 13:00:25 -07:00
Update
This commit is contained in:
parent
d7d00ae309
commit
4054ef493b
1 changed files with 3 additions and 1 deletions
|
@ -371,6 +371,8 @@ bool INI_FILE::GetVariableInSection(char *SectionName, char *VariableName, INI_V
|
||||||
|
|
||||||
DWORD ValueLen = strlen(Variable.VariableValue);
|
DWORD ValueLen = strlen(Variable.VariableValue);
|
||||||
if((ValueLen % 2) != 0) return false;
|
if((ValueLen % 2) != 0) return false;
|
||||||
|
// for security reasons not more than 16 bytes
|
||||||
|
if (ValueLen > 32) ValueLen = 32; // 32 hex digits
|
||||||
|
|
||||||
memset(RetVariable, 0x00, sizeof(*RetVariable));
|
memset(RetVariable, 0x00, sizeof(*RetVariable));
|
||||||
memcpy(RetVariable->Name, Variable.VariableName, ValueLen);
|
memcpy(RetVariable->Name, Variable.VariableName, ValueLen);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue