Fixed a bug in sf::Err (the default output for SFML error messages), it was ignoring random characters

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1578 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2010-10-11 17:58:18 +00:00
parent 77078f53db
commit 535b7bc839

View File

@ -67,9 +67,15 @@ private :
// Valid character
return sputc(static_cast<char>(character));
}
else if (character != EOF)
{
// Not enough space in the buffer: synchronize output and try again
sync();
return overflow(character);
}
else
{
// Invalid character, or not enough space in the buffer: synchronize output
// Invalid character: synchronize output
return sync();
}
}