diff --git a/src/SFML/Graphics/Font.cpp b/src/SFML/Graphics/Font.cpp index 6ea7ae158..82050fc5a 100644 --- a/src/SFML/Graphics/Font.cpp +++ b/src/SFML/Graphics/Font.cpp @@ -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(stream.GetSize()); rec->pos = 0;