[Mono-list] TdsComm::GetString

kojoadams kojoadams@hotmail.com
Sat, 21 Dec 2002 19:29:48 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0073_01C2A927.538AF6F0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

the TdsComm::GetString tries to make an array of bytes with the last =
element being a 0 (zero), then encoding it as a string, however this =
seems to return a string that has a NUL ( '\0') as the last char of the =
string. Is this right or should the array be one less in length.=20
I can submit a patch if that is it is a bug.

kojo
------=_NextPart_000_0073_01C2A927.538AF6F0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1126" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>the TdsComm::GetString tries to make an =
array of=20
bytes with the last element being a 0 (zero), then encoding it as a =
string,=20
however this seems to return a string that has a&nbsp;NUL ( =
'\0')&nbsp;as the=20
last char of the string. Is this right or should the array be one less =
in=20
length. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I can submit a patch if that is it is a =

bug.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>kojo</FONT></DIV></BODY></HTML>

------=_NextPart_000_0073_01C2A927.538AF6F0--