X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fztest%2Fztest.c;h=93a5f1ecf54a68ae71272ae57aa51b9951375c55;hb=3db3ff4a787acf068b122562fb5be5aecec2611f;hp=b38d7b1d0ee492808853f2f48446214433b6ede1;hpb=29dee3ee9ac68d8a75c0d518b1342f447cd2ddc0;p=zfs.git diff --git a/cmd/ztest/ztest.c b/cmd/ztest/ztest.c index b38d7b1..93a5f1e 100644 --- a/cmd/ztest/ztest.c +++ b/cmd/ztest/ztest.c @@ -2581,7 +2581,7 @@ ztest_vdev_aux_add_remove(ztest_ds_t *zd, uint64_t id) zs->zs_vdev_aux = 0; for (;;) { int c; - (void) snprintf(path, sizeof (path), ztest_aux_template, + (void) snprintf(path, MAXPATHLEN, ztest_aux_template, ztest_opts.zo_dir, ztest_opts.zo_pool, aux, zs->zs_vdev_aux); for (c = 0; c < sav->sav_count; c++)