Bug #2567: Fix reversed memset arguments. (David Krause)

This commit is contained in:
Adam Jackson
2005-02-18 16:42:11 +00:00
parent d5fadd6d86
commit 32032cdc78

View File

@@ -1,6 +1,6 @@
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/ati/atidac.c,v 1.18 2003/02/25 17:58:13 tsi Exp $ */
/*
* Copyright 1997 through 2003 by Marc Aurele La France (TSI @ UQV), tsi@xfree86.org
* Copyright 1997 through 2004 by Marc Aurele La France (TSI @ UQV), tsi@xfree86.org
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
@@ -403,7 +403,7 @@ ATILoadPalette
CARD8 fChanged[SizeOf(pATI->NewHW.lut) / 3];
(void)memset(fChanged, SizeOf(fChanged), 0);
(void)memset(fChanged, 0, SizeOf(fChanged));
minShift = redShift;
if (minShift > greenShift)