([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
This commit is contained in:
mccallum 1996-11-24 18:28:47 +00:00
parent d6e386bc54
commit 93ef8014a1

View file

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