From: Kay Sievers Date: Wed, 14 Jan 2009 20:54:31 +0000 (+0100) Subject: libudev: use 4096 bytes buffer for attribute reading X-Git-Tag: 174~1204 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=affed87af1ad1a19a1baab3bfd2d271049f52e6c;ds=sidebyside libudev: use 4096 bytes buffer for attribute reading --- diff --git a/configure.ac b/configure.ac index 5e7adb938..bc2e9c27b 100644 --- a/configure.ac +++ b/configure.ac @@ -15,7 +15,7 @@ test "$prefix" = NONE && test "$exec_prefix" = NONE && exec_prefix= dnl /* libudev version */ LIBUDEV_LT_CURRENT=0 -LIBUDEV_LT_REVISION=7 +LIBUDEV_LT_REVISION=8 LIBUDEV_LT_AGE=0 AC_SUBST(LIBUDEV_LT_CURRENT) AC_SUBST(LIBUDEV_LT_REVISION) diff --git a/udev/lib/libudev-device.c b/udev/lib/libudev-device.c index a7722b3f6..fc881fb3f 100644 --- a/udev/lib/libudev-device.c +++ b/udev/lib/libudev-device.c @@ -862,7 +862,7 @@ const char *udev_device_get_sysattr_value(struct udev_device *udev_device, const { struct udev_list_entry *list_entry; char path[UTIL_PATH_SIZE]; - char value[UTIL_NAME_SIZE]; + char value[4096]; struct stat statbuf; int fd; ssize_t size;