mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Fix correct version of NSTask I hope
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20721 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6d5bed399c
commit
dd2baa6480
1 changed files with 6 additions and 9 deletions
|
@ -27,6 +27,7 @@
|
|||
#include "config.h"
|
||||
#include "GNUstepBase/preface.h"
|
||||
#include "Foundation/NSObject.h"
|
||||
#include "Foundation/NSAutoreleasePool.h"
|
||||
#include "Foundation/NSBundle.h"
|
||||
#include "Foundation/NSCharacterSet.h"
|
||||
#include "Foundation/NSData.h"
|
||||
|
@ -1109,18 +1110,14 @@ quotedFromString(NSString *aString)
|
|||
while ((key = [enumerator nextObject]))
|
||||
{
|
||||
NSString *value;
|
||||
NSString *expression;
|
||||
unsigned l;
|
||||
NSRange r = NSMakeRange(0,0);
|
||||
unichar buffer[1024];
|
||||
|
||||
[data appendData: [key dataUsingEncoding: NSUnicodeStringEncoding];
|
||||
[data appendBytes: separator length: 2];
|
||||
[data appendData: [key dataUsingEncoding: NSUnicodeStringEncoding]];
|
||||
[data appendBytes: &separator length: 2];
|
||||
value = [_environment objectForKey: key];
|
||||
[data appendData: [value dataUsingEncoding: NSUnicodeStringEncoding];
|
||||
[data appendBytes: terminator length: 2]; // end key-value pair
|
||||
[data appendData: [value dataUsingEncoding: NSUnicodeStringEncoding]];
|
||||
[data appendBytes: &terminator length: 2]; // end key-value pair
|
||||
}
|
||||
[data appendBytes: terminator length: 2]; // end of environment
|
||||
[data appendBytes: &terminator length: 2]; // end of environment
|
||||
RELEASE(pool);
|
||||
envp = [data bytes];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue