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
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}