diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index aa60cbe7066ca8f3b720cca8e25aec6e0e046c8f..fc1f0abb8fe463ae3d68f7fbe84f5aab47cf1200 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -1336,7 +1336,7 @@ static int gen_unique_name(struct send_ctx *sctx, return -ENOMEM; while (1) { - len = snprintf(tmp, sizeof(tmp) - 1, "o%llu-%llu-%llu", + len = snprintf(tmp, sizeof(tmp), "o%llu-%llu-%llu", ino, gen, idx); if (len >= sizeof(tmp)) { /* should really not happen */