From 4970666827e65424ee17ccf6341ff84aac974383 Mon Sep 17 00:00:00 2001 From: Kim Woelders Date: Tue, 29 Sep 2009 20:31:45 +0200 Subject: [PATCH] dix: Fix potential memory corruption in doListFontsWithInfo. Signed-off-by: Kim Woelders Reviewed-by: Keith Packard Signed-off-by: Peter Hutterer --- dix/dixfonts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dix/dixfonts.c b/dix/dixfonts.c index d0a46c744..329318d5d 100644 --- a/dix/dixfonts.c +++ b/dix/dixfonts.c @@ -1046,7 +1046,7 @@ doListFontsWithInfo(ClientPtr client, LFWIclosurePtr c) err = AllocError; break; } - memset(reply + c->length, 0, length - c->length); + memset((char*)reply + c->length, 0, length - c->length); c->reply = reply; c->length = length; }