Fixes incorrect return value of FString::toString()

This commit is contained in:
Markus Gans 2017-02-24 23:31:56 +01:00
parent 784afc5a07
commit 34961037f8
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
2017-02-24 Markus Gans <guru.mail@muenster.de>
* FListBox gets the option to save a data pointer for
every FListBoxItem element
* Fixes incorrect return value of FString::toString()
2017-02-19 Markus Gans <guru.mail@muenster.de>
* New FWidget methods setMinimumWidth(), setMinimumHeight(),

View File

@ -569,7 +569,7 @@ const char* FString::c_str() const
//----------------------------------------------------------------------
const std::string FString::toString() const
{
return std::string(c_str(), length+1);
return std::string(c_str(), length);
}
//----------------------------------------------------------------------