summaryrefslogtreecommitdiff
path: root/libudev
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2010-03-02 17:07:14 -0500
committerDavid Zeuthen <davidz@redhat.com>2010-03-02 17:07:14 -0500
commit3a19299202b5d34b89d5910fde25e8a4cfa2b31a (patch)
treebd74040aa96a6d13cd8c8d915a49274c7eaf09af /libudev
parentecd42de2c56b4fcf0069b8b4a4d6607710e5de61 (diff)
Use UTIL_LINE_SIZE, not UTIL_PATH_SIZE to truncate properties
Signed-off-by: David Zeuthen <davidz@redhat.com>
Diffstat (limited to 'libudev')
-rw-r--r--libudev/libudev-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libudev/libudev-device.c b/libudev/libudev-device.c
index 4f42aa2810..b841745991 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);