diff --git a/cmd/zpool_influxdb/zpool_influxdb.c b/cmd/zpool_influxdb/zpool_influxdb.c index f326b0420e..85a3f1f292 100644 --- a/cmd/zpool_influxdb/zpool_influxdb.c +++ b/cmd/zpool_influxdb/zpool_influxdb.c @@ -818,7 +818,7 @@ main(int argc, char *argv[]) break; case 't': tagslen = strlen(optarg) + 2; - tags = calloc(tagslen, 1); + tags = calloc(1, tagslen); if (tags == NULL) { fprintf(stderr, "error: cannot allocate memory " diff --git a/tests/zfs-tests/cmd/draid/draid.c b/tests/zfs-tests/cmd/draid/draid.c index 57261348b3..e12ab84fce 100644 --- a/tests/zfs-tests/cmd/draid/draid.c +++ b/tests/zfs-tests/cmd/draid/draid.c @@ -181,7 +181,7 @@ write_map(const char *filename, nvlist_t *allcfgs) * no locking, it only guarantees the packed nvlist on disk * is updated atomically and is internally consistent. */ - char *tmpname = calloc(MAXPATHLEN, 1); + char *tmpname = calloc(1, MAXPATHLEN); if (tmpname == NULL) { free(buf); return (ENOMEM);