aboutsummaryrefslogtreecommitdiffstats
path: root/disk-utils/partx.c
diff options
context:
space:
mode:
Diffstat (limited to 'disk-utils/partx.c')
-rw-r--r--disk-utils/partx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-utils/partx.c b/disk-utils/partx.c
index 4f73c5f238..07b3e28b9e 100644
--- a/disk-utils/partx.c
+++ b/disk-utils/partx.c
@@ -245,7 +245,7 @@ static int get_max_partno(const char *disk, dev_t devno)
if (d->d_type != DT_DIR && d->d_type != DT_UNKNOWN)
continue;
#endif
- if (strncmp(parent, d->d_name, strlen(parent)))
+ if (strncmp(parent, d->d_name, strlen(parent)) != 0)
continue;
snprintf(path, sizeof(path), "%s/partition", d->d_name);