]> err.no Git - systemd/commitdiff
udev-rules.c: change import property buffer to 16384 bytes
authorHarald Hoyer <harald@redhat.com>
Fri, 12 Nov 2010 13:39:14 +0000 (14:39 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 12 Nov 2010 13:42:35 +0000 (14:42 +0100)
import_program_into_properties() should have the same line length as
import_file_into_properties()

see also https://bugzilla.redhat.com/show_bug.cgi?id=652318

udev/udev-rules.c

index 52f121c29a73181eaac0db3292cc90be49ec2df1..ab7b6aedb977e16f39687ebc39c017dea75c332f 100644 (file)
@@ -751,7 +751,7 @@ static int import_program_into_properties(struct udev_device *dev, const char *p
 {
        struct udev *udev = udev_device_get_udev(dev);
        char **envp;
-       char result[4096];
+       char result[UTIL_LINE_SIZE];
        size_t reslen;
        char *line;