From: David Zeuthen Date: Tue, 2 Mar 2010 22:07:14 +0000 (-0500) Subject: Use UTIL_LINE_SIZE, not UTIL_PATH_SIZE to truncate properties X-Git-Tag: 174~604 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a19299202b5d34b89d5910fde25e8a4cfa2b31a;p=systemd Use UTIL_LINE_SIZE, not UTIL_PATH_SIZE to truncate properties Signed-off-by: David Zeuthen --- diff --git a/libudev/libudev-device.c b/libudev/libudev-device.c index 4f42aa28..b8417459 100644 --- a/libudev/libudev-device.c +++ b/libudev/libudev-device.c @@ -1089,7 +1089,7 @@ struct udev_list_entry *udev_device_add_property(struct udev_device *udev_device struct udev_list_entry *udev_device_add_property_from_string(struct udev_device *udev_device, const char *property) { - char name[UTIL_PATH_SIZE]; + char name[UTIL_LINE_SIZE]; char *val; util_strscpy(name, sizeof(name), property);