bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GSHTTPUrlHandle path handling


From: Sheldon Gill
Subject: GSHTTPUrlHandle path handling
Date: Wed, 3 Mar 2004 16:20:19 +0800
User-agent: KMail/1.6.50

In GSHTTPUrlHandle.m, + initialise:

      sprintf(debugFile, "/tmp/GSHTTP.%d",
        [[NSProcessInfo processInfo] processIdentifier]);

assumes "/tmp".  Code should call NSTemporaryDirectory() to establish the path 
and append "GSHTTP.%d" for the file name.

Off the top of my head:

sprintf(debugFile, [[NSString stringWithFormat: @"%@/GSHTTP.%d" arguments:
[NSTemporaryDirectory() objectAtIndex: 0] [[NSProcessInfo processInfo] 
processIdentifier] nil] cString]);

should provide the correct behaviour.


Regards,
Sheldon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]