]> err.no Git - systemd/commitdiff
libudev: device - 128 -> ENVP_SIZE
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 21 Oct 2008 11:58:19 +0000 (13:58 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 21 Oct 2008 11:58:19 +0000 (13:58 +0200)
udev/lib/libudev-device.c

index 86f7918d49ac2514cdfd54c9eb08885e98f41e58..5a435487362eafb96f240f4c832edcc7a3a2d71c 100644 (file)
@@ -1019,7 +1019,7 @@ char **udev_device_get_properties_envp(struct udev_device *udev_device)
                struct udev_list_entry *list_entry;
 
                if (udev_device->envp) {
-                       for (i = 0; i < 128 && udev_device->envp[i] != NULL; i++)
+                       for (i = 0; i < ENVP_SIZE && udev_device->envp[i] != NULL; i++)
                                free(udev_device->envp[i]);
                } else
                        udev_device->envp = malloc(sizeof(char *) * ENVP_SIZE);