chiark / gitweb /
libudev: monitor - do not mangle DEVLINKS property
[elogind.git] / extras / edd_id / edd_id.c
index b53700e7561cba2e36af100a778bc8aa4fe4e77c..d7aec1488ccd5fe86dd714d20c1723c49d2ae8b8 100644 (file)
@@ -125,7 +125,7 @@ int main(int argc, char *argv[])
 
        /* lookup signature in sysfs to determine the name */
        for (dent = readdir(dir); dent != NULL; dent = readdir(dir)) {
-               char file[PATH_SIZE];
+               char file[UTIL_PATH_SIZE];
                char sysfs_id_buf[256];
                uint32_t sysfs_id;
                ssize_t size;
@@ -156,7 +156,7 @@ int main(int argc, char *argv[])
                if (disk_id == sysfs_id) {
                        if (match[0] == '\0') {
                                /* store id */
-                               strlcpy(match, dent->d_name, sizeof(match));
+                               util_strlcpy(match, dent->d_name, sizeof(match));
                        } else {
                                /* error, same signature for another device */
                                info(udev, "'%s' does not have a unique signature\n", node);