[unixODBC-dev] Re: Bug ? SQLGetDiagFieldW() assume buffer lengths in SQLWCHAR instead of bytes

Nick Gorham nick.gorham at easysoft.com
Mon Jan 16 12:12:18 GMT 2006


Marc Herbert wrote:

>>What do you think?
>>    
>>
>
>I think your patch is equivalent to mine concerning multiplication and
>division of sizes by sizeof(SQLWCHAR); we seem to agree on this!
>  
>
Oh yes, I agree, the only difference is the full buffer length is used 
from the apps viewpoint.

>However I still don't get why you malloc() a couple of extra bytes
>the size of +1 (wide) character. Just an extra precaution? 
>I can't harm much anyway...
>  
>
Yes, just being carefull (maybe overly so).

-- 
Nick



More information about the unixODBC-dev mailing list