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:
parent
a066eb9968
commit
f5cbeabb9b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user