mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
Merge remote-tracking branch 'TsudaKageyu/substr-bug'
This commit is contained in:
commit
aa34afda79
@ -345,9 +345,6 @@ bool String::startsWith(const String &s) const
|
||||
|
||||
String String::substr(uint position, uint n) const
|
||||
{
|
||||
if(n > position + d->data.size())
|
||||
n = d->data.size() - position;
|
||||
|
||||
String s;
|
||||
s.d->data = d->data.substr(position, n);
|
||||
return s;
|
||||
|
Loading…
Reference in New Issue
Block a user