On Friday 05 January 2007 19:00, Alex Villacís Lasso wrote: > This is not a typo, but rather an unnecessary verification, from when I > didn't know the true size of a DRVCONFIGINFO. The struct size should be > *exactly 16 bytes*, even though only the first 12 bytes are used. This > patch might even introduce a bug, where the struct info assumed by the > codec to be 16 bytes when only 12 are allocated, and some smart-ass > codec tries to use the last 4 bytes of the struct for its own purposes, > which with this patch are now past the end of the allocated array. A > more correct patch would fix the comment to indicate that exactly 16 > bytes are allocated for a 12-byte struct, and remove the conditional > assignment altogether.
Oh, ok. Looking at the code and the comment, I wasn't sure which of that was the case, and sent the patch hoping for this kind of response. I'll fix it then. Thanks, Kai -- Kai Blin, <kai Dot blin At gmail Dot com> WorldForge developer http://www.worldforge.org/ Wine developer http://wiki.winehq.org/KaiBlin/ -- Will code for cotton.
pgpJYmI68u7tS.pgp
Description: PGP signature