From 9a23e9e7754027775f62baec847b46703e20d166 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Tue, 21 Oct 2008 13:58:19 +0200 Subject: [PATCH] libudev: device - 128 -> ENVP_SIZE --- udev/lib/libudev-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udev/lib/libudev-device.c b/udev/lib/libudev-device.c index 86f7918d..5a435487 100644 --- a/udev/lib/libudev-device.c +++ b/udev/lib/libudev-device.c @@ -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); -- 2.39.5