mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Minor fix to ensure string termination when needed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28329 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
29e53516ff
commit
9a886d9d6f
1 changed files with 5 additions and 5 deletions
|
@ -1419,15 +1419,15 @@ tables:
|
|||
done:
|
||||
|
||||
/*
|
||||
* Post conversion ... set output values.
|
||||
* Post conversion ... terminate if needed, and set output values.
|
||||
*/
|
||||
if (extra != 0 && dst != 0)
|
||||
{
|
||||
ptr[dpos] = (unichar)0;
|
||||
}
|
||||
*size = dpos;
|
||||
if (dst != 0 && (result == YES || (options & GSUniShortOk)))
|
||||
{
|
||||
if (extra != 0)
|
||||
{
|
||||
ptr[dpos] = (unichar)0;
|
||||
}
|
||||
if (options & GSUniTemporary)
|
||||
{
|
||||
unsigned bytes = dpos * sizeof(unichar) + extra;
|
||||
|
|
Loading…
Reference in a new issue