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:
parent
77078f53db
commit
535b7bc839
@ -67,9 +67,15 @@ private :
|
|||||||
// Valid character
|
// Valid character
|
||||||
return sputc(static_cast<char>(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
|
else
|
||||||
{
|
{
|
||||||
// Invalid character, or not enough space in the buffer: synchronize output
|
// Invalid character: synchronize output
|
||||||
return sync();
|
return sync();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user