([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:
Andrew McCallum 1996-10-31 18:27:22 +00:00
parent e7669db788
commit 801adeb5c6

View file

@ -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