Fix overflow memset in JGINYUEInternalV2Controller.cpp
This commit is contained in:
parent
9ced0a9225
commit
8305572613
1 changed files with 2 additions and 2 deletions
|
|
@ -97,8 +97,8 @@ void JGINYUEInternalUSBV2Controller::Init_device()
|
|||
if(usb_buf[1] != 0x0F)
|
||||
{
|
||||
ZoneCount = 0x00;
|
||||
memset(device_config, 0x00, 8*sizeof(AreaConfigurationV2));
|
||||
memset (&device_config_Global, 0x00, 8*sizeof(AreaConfigurationV2));
|
||||
memset(device_config, 0x00, sizeof(device_config));
|
||||
memset (&device_config_Global, 0x00, sizeof(device_config_Global));
|
||||
return;
|
||||
}
|
||||
unsigned char Zone_Info = usb_buf[4];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue