chiark / gitweb /
Use UTIL_LINE_SIZE, not UTIL_PATH_SIZE to truncate properties
authorDavid Zeuthen <davidz@redhat.com>
Tue, 2 Mar 2010 22:07:14 +0000 (17:07 -0500)
committerDavid Zeuthen <davidz@redhat.com>
Tue, 2 Mar 2010 22:07:14 +0000 (17:07 -0500)
Signed-off-by: David Zeuthen <davidz@redhat.com>
libudev/libudev-device.c

index 4f42aa2810795af231bc7e0ccf28b08ec5739e72..b841745991effca0a32ac69ee7b1d70c36129d3f 100644 (file)
@@ -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);