From 09745e3dc8a6acca68d7ed1984d7c78d966f266f Mon Sep 17 00:00:00 2001 From: mccallum Date: Tue, 23 Jan 1996 22:30:56 +0000 Subject: [PATCH] ([Stream -writeLine:]): Replace with more efficient implementation from MemoryStream class. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@767 72102866-910b-0410-8b05-ffd578937521 --- Source/Stream.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Stream.m b/Source/Stream.m index fc48d4cfc..bc2e2c1ba 100644 --- a/Source/Stream.m +++ b/Source/Stream.m @@ -71,7 +71,9 @@ - (void) writeLine: (id )l { - [self writeFormat:"%s\n", l]; + const char *s = [l cStringNoCopy]; + [self writeBytes:s length:strlen(s)]; + [self writeBytes:"\n" length:1]; } - (id ) readLine