From b36ccd098c4b2fb51497581cb14238e5dc9d3d72 Mon Sep 17 00:00:00 2001 From: Andrew McCallum Date: Sun, 24 Nov 1996 18:28:47 +0000 Subject: [PATCH] ([Stream -readLine]): Don't use the non-existant +stringWithCStringNoCopy:. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1949 72102866-910b-0410-8b05-ffd578937521 --- Source/Stream.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Stream.m b/Source/Stream.m index 0c5439438..7821fbeba 100644 --- a/Source/Stream.m +++ b/Source/Stream.m @@ -101,7 +101,10 @@ NSString* StreamException = @"StreamException"; { char *l; [self readFormat: @"%a[^\n]\n", &l]; - return [NSString stringWithCStringNoCopy:l]; + return [[[NSString alloc] initWithCStringNoCopy: l + length: strlen (l) + freeWhenDone: YES] + autorelease]; } - (void) flushStream