1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-15 10:48:33 +01:00

Copy string metadata properly

This commit is contained in:
David Sansome 2010-08-28 13:52:29 +00:00
parent a066eb9968
commit f5cbeabb9b

View File

@ -46,7 +46,7 @@ public:
operator wchar_t*() const { return get(); }
int characters() const { return chars_; }
int bytes() const { return chars_ * sizeof(wchar_t) + 1; }
int bytes() const { return (chars_ + 1) * sizeof(wchar_t); }
private:
Q_DISABLE_COPY(ScopedWCharArray);