mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-19 03:51:38 +00:00
([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:
parent
3a591a0d47
commit
75cd745baf
1 changed files with 3 additions and 2 deletions
|
@ -153,8 +153,9 @@ static BOOL debug_binary_coder;
|
||||||
case _C_CHARPTR:
|
case _C_CHARPTR:
|
||||||
{
|
{
|
||||||
unsigned length = strlen (*(char**)d);
|
unsigned length = strlen (*(char**)d);
|
||||||
length = htonl (length);
|
unsigned nlength;
|
||||||
[stream writeBytes: &length
|
nlength = htonl (length);
|
||||||
|
[stream writeBytes: &nlength
|
||||||
length: NUM_BYTES_STRING_LENGTH];
|
length: NUM_BYTES_STRING_LENGTH];
|
||||||
[stream writeBytes: *(char**)d
|
[stream writeBytes: *(char**)d
|
||||||
length: length];
|
length: length];
|
||||||
|
|
Loading…
Reference in a new issue