mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
getCString... fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@10214 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f4655c3323
commit
816ac32988
2 changed files with 11 additions and 8 deletions
|
@ -889,8 +889,8 @@ getCString_c(ivars self, char *buffer, unsigned int maxLength,
|
|||
len = maxLength;
|
||||
if (leftoverRange != 0)
|
||||
{
|
||||
leftoverRange->location = 0;
|
||||
leftoverRange->length = 0;
|
||||
leftoverRange->location = aRange.location + maxLength;
|
||||
leftoverRange->length = aRange.length - maxLength;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -898,8 +898,8 @@ getCString_c(ivars self, char *buffer, unsigned int maxLength,
|
|||
len = aRange.length;
|
||||
if (leftoverRange != 0)
|
||||
{
|
||||
leftoverRange->location = aRange.location + maxLength;
|
||||
leftoverRange->length = aRange.length - maxLength;
|
||||
leftoverRange->location = 0;
|
||||
leftoverRange->length = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -923,8 +923,8 @@ getCString_u(ivars self, char *buffer, unsigned int maxLength,
|
|||
len = maxLength;
|
||||
if (leftoverRange != 0)
|
||||
{
|
||||
leftoverRange->location = 0;
|
||||
leftoverRange->length = 0;
|
||||
leftoverRange->location = aRange.location + maxLength;
|
||||
leftoverRange->length = aRange.length - maxLength;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -932,8 +932,8 @@ getCString_u(ivars self, char *buffer, unsigned int maxLength,
|
|||
len = aRange.length;
|
||||
if (leftoverRange != 0)
|
||||
{
|
||||
leftoverRange->location = aRange.location + maxLength;
|
||||
leftoverRange->length = aRange.length - maxLength;
|
||||
leftoverRange->location = 0;
|
||||
leftoverRange->length = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue