summaryrefslogtreecommitdiffstats
path: root/Mac/Compat/chdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Compat/chdir.c')
-rw-r--r--Mac/Compat/chdir.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Mac/Compat/chdir.c b/Mac/Compat/chdir.c
index b8ec6d7..3f89b52 100644
--- a/Mac/Compat/chdir.c
+++ b/Mac/Compat/chdir.c
@@ -11,11 +11,8 @@ chdir(path)
char *path;
{
WDPBRec pb;
- char name[MAXPATH];
- strncpy(name, path, sizeof name);
- name[MAXPATH-1]= EOS;
- pb.ioNamePtr= (StringPtr) c2pstr(name);
+ pb.ioNamePtr= (StringPtr) Pstring(path);
pb.ioVRefNum= 0;
pb.ioWDDirID= 0;
if (PBHSetVol(&pb, FALSE) != noErr) {