aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/kldconfig
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2005-11-07 19:22:20 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2005-11-07 19:22:20 +0000
commitc51a26d4b681fb7656c2556cfd72b69b9019a624 (patch)
tree4e5ac194487a45611224111c8a1e6597aeff475e /sbin/kldconfig
parent5baadf211046358c2ad02866eb110ac47b33e5d3 (diff)
downloadsrc-c51a26d4b681fb7656c2556cfd72b69b9019a624.tar.gz
src-c51a26d4b681fb7656c2556cfd72b69b9019a624.zip
Fix malloc size (visible on amd64, with "kldconfig -r").
Notes
Notes: svn path=/head/; revision=152169
Diffstat (limited to 'sbin/kldconfig')
-rw-r--r--sbin/kldconfig/kldconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/kldconfig/kldconfig.c b/sbin/kldconfig/kldconfig.c
index 6da8d530c192..403251d2a18f 100644
--- a/sbin/kldconfig/kldconfig.c
+++ b/sbin/kldconfig/kldconfig.c
@@ -270,7 +270,7 @@ parsepath(struct pathhead *pathq, char *path, int uniq)
while ((p = strsep(&path, ";")) != NULL)
if (!uniq) {
- if (((pe = malloc(sizeof(pe))) == NULL) ||
+ if (((pe = malloc(sizeof(*pe))) == NULL) ||
((pe->path = strdup(p)) == NULL)) {
errno = ENOMEM;
err(1, "allocating path element");