mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
([MemoryStream -writeFormat:arguments:]): Use VSPRINTF_LENGTH.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1900 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e7669db788
commit
801adeb5c6
1 changed files with 2 additions and 1 deletions
|
@ -237,7 +237,8 @@ void unchar_func(void *s, int c)
|
|||
if (size - (prefix + position) < 128)
|
||||
[self setStreamBufferCapacity:size*2];
|
||||
|
||||
ret = vsprintf(buffer+prefix+position, [format cStringNoCopy], arg);
|
||||
ret = VSPRINTF_LENGTH (vsprintf(buffer+prefix+position,
|
||||
[format cStringNoCopy], arg));
|
||||
position += ret;
|
||||
/* xxx Make sure we didn't overrun our buffer.
|
||||
As per above kludge, this would happen if we happen to have more than
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue