Fix bugs in [v]snprintf usage
[fio.git] / engines / falloc.c
index 525a0aae922d0e2d024122ba5e23ebcb24cbaf83..4654fe817aaeccbd4e70b20c060990c1562dd33e 100644 (file)
@@ -44,7 +44,7 @@ open_again:
        if (f->fd == -1) {
                char buf[FIO_VERROR_SIZE];
                int __e = errno;
-               snprintf(buf, sizeof(buf) - 1, "open(%s)", f->file_name);
+               snprintf(buf, sizeof(buf), "open(%s)", f->file_name);
                td_verror(td, __e, buf);
        }