/* Enumerate entries in this iio device's base folder */
while ((d = readdir(dir))) {
- if (!strcmp(d->d_name, ".") || !strcmp(d->d_name, ".."))
+ if (!strncmp(d->d_name, ".", sizeof(".")) || !strncmp(d->d_name, "..", sizeof("..")))
continue;
/* If the name matches a catalog entry, flag it */