diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-10-17 06:33:36 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-10-17 06:33:36 +0000 |
commit | ec68a46c895fe2a1e43ac389869a7a2c15179bec (patch) | |
tree | b3f853450d8117d84fb8384158af1be230f98336 /sbin | |
parent | 9741a471c1cc8fcc3afa2c4ba095cace40abe262 (diff) |
trivial replacement with reallocarray()
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/fsck/fsck.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fsck/fsck.c b/sbin/fsck/fsck.c index 83abc318c04..a006cd9c838 100644 --- a/sbin/fsck/fsck.c +++ b/sbin/fsck/fsck.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fsck.c,v 1.31 2014/10/08 16:27:53 deraadt Exp $ */ +/* $OpenBSD: fsck.c,v 1.32 2014/10/17 06:33:35 deraadt Exp $ */ /* $NetBSD: fsck.c,v 1.7 1996/10/03 20:06:30 christos Exp $ */ /* @@ -250,7 +250,7 @@ checkfs(const char *vfstype, const char *spec, const char *mntpt, void *auxarg, vfstype = MOUNT_UFS; maxargc = 100; - argv = emalloc(sizeof(char *) * maxargc); + argv = ereallocarray(NULL, maxargc, sizeof(char *)); argc = 0; (void)snprintf(fsname, sizeof(fsname), "fsck_%s", vfstype); |