mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
Bug fix in String::substr()
This commit is contained in:
parent
33d0be110b
commit
74b94613a0
@ -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…
x
Reference in New Issue
Block a user