mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
([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:
parent
6c4fd98f95
commit
b36ccd098c
1 changed files with 4 additions and 1 deletions
|
@ -101,7 +101,10 @@ NSString* StreamException = @"StreamException";
|
||||||
{
|
{
|
||||||
char *l;
|
char *l;
|
||||||
[self readFormat: @"%a[^\n]\n", &l];
|
[self readFormat: @"%a[^\n]\n", &l];
|
||||||
return [NSString stringWithCStringNoCopy:l];
|
return [[[NSString alloc] initWithCStringNoCopy: l
|
||||||
|
length: strlen (l)
|
||||||
|
freeWhenDone: YES]
|
||||||
|
autorelease];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) flushStream
|
- (void) flushStream
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue