diff options
author | Adam Jackson <ajax@nwnk.net> | 2005-08-28 19:47:39 +0000 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2005-08-28 19:47:39 +0000 |
commit | 20813d3af065f9b719b39d2e7a3382b8fa278a48 (patch) | |
tree | 0ef67f5396de1fcd822fdb674a821e1586071935 /render/render.c | |
parent | 0926cf79c030f29dce32a9dc944734960ec93d19 (diff) |
Bug #3974: Fix unaligned memory access on LP64. (Matthieu Herrb)
Diffstat (limited to 'render/render.c')
-rw-r--r-- | render/render.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render/render.c b/render/render.c index 1aea07d35..0f4bca92f 100644 --- a/render/render.c +++ b/render/render.c @@ -1340,7 +1340,7 @@ ProcRenderCompositeGlyphs (ClientPtr client) { if (buffer + sizeof (GlyphSet) < end) { - gs = *(GlyphSet *) buffer; + memcpy(&gs, buffer, sizeof(GlyphSet)); glyphSet = (GlyphSetPtr) SecurityLookupIDByType (client, gs, GlyphSetType, |