diff options
Diffstat (limited to 'src/memchunk.h')
-rw-r--r-- | src/memchunk.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memchunk.h b/src/memchunk.h index 7a7f2e9..7026184 100644 --- a/src/memchunk.h +++ b/src/memchunk.h @@ -199,7 +199,7 @@ template <typename Memchunk> struct Memchunks { return append(s, N - 1); } size_t append(const std::string &s) { return append(s.c_str(), s.size()); } - size_t append(const StringRef &s) { return append(s.c_str(), s.size()); } + size_t append(const StringRef &s) { return append(s.data(), s.size()); } size_t append(const ImmutableString &s) { return append(s.c_str(), s.size()); } |