diff options
Diffstat (limited to 'lib/libspl/mkdirp.c')
-rw-r--r-- | lib/libspl/mkdirp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libspl/mkdirp.c b/lib/libspl/mkdirp.c index 2f091883a..541741752 100644 --- a/lib/libspl/mkdirp.c +++ b/lib/libspl/mkdirp.c @@ -166,7 +166,7 @@ simplify(const char *str) mbPathlen = strlen(mbPath); - if ((wcPath = calloc(sizeof (wchar_t), mbPathlen+1)) == NULL) { + if ((wcPath = calloc(mbPathlen+1, sizeof (wchar_t))) == NULL) { free(mbPath); return (NULL); } |