From c0b02222fd85feabb0b9901364082dc6ab484b68 Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Sat, 23 Jan 2010 23:09:43 +0100 Subject: Clean up packet size types and add some paranoia None of this should fix an exploit, it's just healthy paranoia. --- daemon/device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'daemon/device.h') diff --git a/daemon/device.h b/daemon/device.h index 4bf9752..ea77069 100644 --- a/daemon/device.h +++ b/daemon/device.h @@ -31,7 +31,7 @@ struct device_info { uint16_t pid; }; -void device_data_input(struct usb_device *dev, unsigned char *buf, int length); +void device_data_input(struct usb_device *dev, unsigned char *buf, uint32_t length); int device_add(struct usb_device *dev); void device_remove(struct usb_device *dev); -- cgit v1.1-32-gdbae