Fixed minor error in sf::Font::LoadFromStream

This commit is contained in:
Laurent Gomila 2011-12-30 19:16:20 +01:00
parent 6c3fb426b2
commit 87b7676b95

View File

@ -199,7 +199,7 @@ bool Font::LoadFromStream(InputStream& stream)
// Prepare a wrapper for our stream, that we'll pass to FreeType callbacks
FT_StreamRec* rec = new FT_StreamRec;
std::memset(rec, 0, sizeof(rec));
std::memset(rec, 0, sizeof(*rec));
rec->base = NULL;
rec->size = static_cast<unsigned long>(stream.GetSize());
rec->pos = 0;