Fix buf_t not having buf_len set