Skip to content

Commit

Permalink
examples/librados: fix bufferlist::copy() in hello_world.cc.
Browse files Browse the repository at this point in the history
Signed-off-by: Radoslaw Zarzynski <[email protected]>
  • Loading branch information
rzarzynski committed Feb 4, 2020
1 parent e7c7e51 commit 585c823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/librados/hello_world.cc
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ int main(int argc, const char **argv)
std::cout << "we read our object " << object_name
<< ", and got back " << ret << " bytes with contents\n";
std::string read_string;
read_buf.copy(0, ret, read_string);
read_buf.begin().copy(ret, read_string);
std::cout << read_string << std::endl;
}

Expand Down

0 comments on commit 585c823

Please sign in to comment.