summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extras/path_id/path_id.c2
-rw-r--r--udev/lib/libudev-monitor.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/extras/path_id/path_id.c b/extras/path_id/path_id.c
index 4531b5e29a..ce12e92c82 100644
--- a/extras/path_id/path_id.c
+++ b/extras/path_id/path_id.c
@@ -28,7 +28,7 @@
#include <dirent.h>
#include <getopt.h>
-#include <libudev.h>
+#include <../../udev/lib/libudev.h>
#include <../../udev/udev.h>
int debug;
diff --git a/udev/lib/libudev-monitor.c b/udev/lib/libudev-monitor.c
index 33a0605492..7a0cb47852 100644
--- a/udev/lib/libudev-monitor.c
+++ b/udev/lib/libudev-monitor.c
@@ -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 {