29 Jul
2008
29 Jul
'08
2:52 p.m.
At Fri, 18 Jul 2008 18:00:18 +1200, linux@audioscience.com wrote:
@@ -486,14 +487,16 @@ short HpiCheckControlCache( &aDesc[dwIndex].pData[dwOffset], 8); nRemainingChars = nStringLength - dwOffset - 8;
if (nRemainingChars < 0)
if (nRemainingChars < 0) { nRemainingChars = 0;
phr->u.cu.chars8.szData[8 +
nRemainingChars] = 0;
}
This change looks incorrect. szData is 8-bytes array, and you reset nRemainigChars to 0. Also, not sure what this zero-clear actually does...
Takashi