diff --git a/include/elliptics/utils.hpp b/include/elliptics/utils.hpp index c1bfc7eaa..c5bd396d7 100644 --- a/include/elliptics/utils.hpp +++ b/include/elliptics/utils.hpp @@ -342,10 +342,15 @@ class argument_data_base } argument_data_base(const char *data) : - m_data(pointer_type::from_raw(const_cast(data), std::strlen(data))) + m_data(pointer_type::from_raw(const_cast(data), std::strlen(data))) // It isn't correct for binary data. { } + argument_data_base(const char *data, size_t size) : + m_data(pointer_type::from_raw(const_cast(data), size)) + { + } + const void *data() const { return m_data.data();