mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-18 11:41:06 +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:
|
||||
{
|
||||
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];
|
||||
|
|
Loading…
Reference in a new issue