summaryrefslogtreecommitdiff
path: root/udev/lib/libudev-device.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-10-21 13:58:19 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-10-21 13:58:19 +0200
commit9a23e9e7754027775f62baec847b46703e20d166 (patch)
tree662eb7db98db38ff10599860e558ff83262320f4 /udev/lib/libudev-device.c
parentbe18918f65eb88d34953e8083aa5ca1e2c16f86c (diff)
libudev: device - 128 -> ENVP_SIZE
Diffstat (limited to 'udev/lib/libudev-device.c')
-rw-r--r--udev/lib/libudev-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev/lib/libudev-device.c b/udev/lib/libudev-device.c
index 86f7918d49..5a43548736 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);