mirror of
https://github.com/aaru-dps/aaruremote.git
synced 2025-12-16 19:24:37 +00:00
Use sprintf_s in Windows instead of snprintf.
This commit is contained in:
@@ -311,7 +311,7 @@ UsbDevice_t* GetPortDevice(UsbPort_t* port)
|
||||
// by the structure allocation, we're forced to zero out this
|
||||
// chunk of memory by using the StringToHGlobalAuto() hack above
|
||||
descriptor = (PUSB_STRING_DESCRIPTOR)(request + sizeof(USB_DESCRIPTOR_REQUEST));
|
||||
snprintf(device->Manufacturer, USB_BUFFER_SIZE, "%ws", descriptor->bString);
|
||||
sprintf_s(device->Manufacturer, USB_BUFFER_SIZE, "%ws", descriptor->bString);
|
||||
}
|
||||
}
|
||||
if(port->PortDeviceDescriptor.iProduct > 0)
|
||||
|
||||
Reference in New Issue
Block a user