([BinaryCStream -encodeValueOfCType:at:withName:name]): [_C_CHARPTR]:

Write the string with the host LENGTH, not the network LENGTH!


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1256 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1996-03-22 02:36:22 +00:00
parent 3a591a0d47
commit 75cd745baf

View file

@ -153,8 +153,9 @@ static BOOL debug_binary_coder;
case _C_CHARPTR:
{
unsigned length = strlen (*(char**)d);
length = htonl (length);
[stream writeBytes: &length
unsigned nlength;
nlength = htonl (length);
[stream writeBytes: &nlength
length: NUM_BYTES_STRING_LENGTH];
[stream writeBytes: *(char**)d
length: length];