summaryrefslogtreecommitdiffstats
path: root/Mac/Compat
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-01-12 23:36:13 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-01-12 23:36:13 (GMT)
commitbef8f68d84c3a87d0b217c60139f2bc9ad423ff0 (patch)
treebf32351c66138a3b83acfbf86fa84205c0791146 /Mac/Compat
parent1beb3d204f24c85363ed332599ead52e00363674 (diff)
downloadcpython-bef8f68d84c3a87d0b217c60139f2bc9ad423ff0.zip
cpython-bef8f68d84c3a87d0b217c60139f2bc9ad423ff0.tar.gz
cpython-bef8f68d84c3a87d0b217c60139f2bc9ad423ff0.tar.bz2
Always use c2pstrcpy in stead of c2pstr, not only when compiling for carbon.
Diffstat (limited to 'Mac/Compat')
-rw-r--r--Mac/Compat/getwd.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/Mac/Compat/getwd.c b/Mac/Compat/getwd.c
index df96d42..738d756 100644
--- a/Mac/Compat/getwd.c
+++ b/Mac/Compat/getwd.c
@@ -53,12 +53,8 @@ getwd(char *cwd)
sprintf(cwd, "I/O error %d in PBHGetVolSync", err);
return NULL;
}
-#if TARGET_API_MAC_CARBON
p2cstrcpy(cwd, (StringPtr)cwd);
ecwd = strchr(cwd, EOS);
-#else
- ecwd= strchr((const char *)p2cstr((unsigned char*)cwd), EOS);
-#endif
ebuf= buf;
*ebuf = EOS;
@@ -77,12 +73,8 @@ getwd(char *cwd)
return NULL;
}
dirid= pb.d.ioDrParID;
-#if TARGET_API_MAC_CARBON
p2cstrcpy(ebuf, (StringPtr)ebuf);
ebuf += strlen(ebuf);
-#else
- ebuf += strlen((const char *)p2cstr((unsigned char *)ebuf));
-#endif
/* Should check for buf overflow */
}
}