Removed references to cStringNoCopy.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2990 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1998-09-30 07:42:38 +00:00
parent 1a0efaad7c
commit 0806cb068b
27 changed files with 143 additions and 149 deletions

View file

@ -544,7 +544,7 @@ decode (const void *ptr)
if (f)
{
fp = fopen([f cStringNoCopy], "r");
fp = fopen([f cString], "r");
if (fp != NULL)
{
if (fscanf(fp, "%79s", zone_name) == 1)
@ -645,8 +645,8 @@ decode (const void *ptr)
/* Make sure that only time zone files are accessed.
FIXME: Make this more robust. */
if ([aTimeZoneName length] == 0
|| ([aTimeZoneName cStringNoCopy])[0] == '/'
|| strchr([aTimeZoneName cStringNoCopy], '.') != NULL)
|| ([aTimeZoneName cString])[0] == '/'
|| strchr([aTimeZoneName cString], '.') != NULL)
{
NSLog(@"Disallowed time zone name `%@'.", aTimeZoneName);
[zone_mutex unlock];
@ -658,7 +658,7 @@ decode (const void *ptr)
/* Open file. */
fileName = [NSTimeZone getTimeZoneFile: aTimeZoneName];
file = fopen([fileName cStringNoCopy], "rb");
file = fopen([fileName cString], "rb");
if (file == NULL)
[NSException raise: fileException format: errMess];
@ -779,7 +779,7 @@ decode (const void *ptr)
/* Read dictionary from file. */
abbreviationDictionary = [[NSMutableDictionary alloc] init];
fileName = [NSTimeZone getAbbreviationFile];
file = fopen([fileName cStringNoCopy], "r");
file = fopen([fileName cString], "r");
if (file == NULL)
[NSException
raise: NSInternalInconsistencyException
@ -826,7 +826,7 @@ decode (const void *ptr)
temp_array[i] = [[NSMutableArray alloc] init];
fileName = [NSTimeZone getRegionsFile];
file = fopen([fileName cStringNoCopy], "r");
file = fopen([fileName cString], "r");
if (file == NULL)
[NSException
raise: NSInternalInconsistencyException