summaryrefslogtreecommitdiffstats
path: root/misc-utils/lsblk-mnt.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc-utils/lsblk-mnt.c')
-rw-r--r--misc-utils/lsblk-mnt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/misc-utils/lsblk-mnt.c b/misc-utils/lsblk-mnt.c
index 9f6ba0d..f4ce676 100644
--- a/misc-utils/lsblk-mnt.c
+++ b/misc-utils/lsblk-mnt.c
@@ -60,8 +60,7 @@ static void add_filesystem(struct lsblk_device *dev, struct libmnt_fs *fs)
assert(dev);
assert(fs);
- dev->fss = xrealloc(dev->fss, (dev->nfss + 1)
- * sizeof(struct libmnt_fs *));
+ dev->fss = xreallocarray(dev->fss, dev->nfss + 1, sizeof(struct libmnt_fs *));
dev->fss[dev->nfss] = fs;
dev->nfss++;
dev->is_mounted = 1;