dix: Fix potential memory corruption in doListFontsWithInfo.

Signed-off-by: Kim Woelders <kim@woelders.dk>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Kim Woelders 2009-09-29 20:31:45 +02:00 committed by Peter Hutterer
parent 6ffda5aae7
commit 4970666827

View File

@ -1046,7 +1046,7 @@ doListFontsWithInfo(ClientPtr client, LFWIclosurePtr c)
err = AllocError; err = AllocError;
break; break;
} }
memset(reply + c->length, 0, length - c->length); memset((char*)reply + c->length, 0, length - c->length);
c->reply = reply; c->reply = reply;
c->length = length; c->length = length;
} }