fix signed/unsigned warning
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
#include <dirent.h>
|
||||
#include <getopt.h>
|
||||
|
||||
#include <libudev.h>
|
||||
#include <../../udev/lib/libudev.h>
|
||||
#include <../../udev/udev.h>
|
||||
|
||||
int debug;
|
||||
|
||||
@@ -544,7 +544,7 @@ retry:
|
||||
return NULL;
|
||||
if (nlh->properties_off < sizeof(struct udev_monitor_netlink_header))
|
||||
return NULL;
|
||||
if (nlh->properties_off+32U > buflen)
|
||||
if (nlh->properties_off+32 > buflen)
|
||||
return NULL;
|
||||
bufpos = nlh->properties_off;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user