diff options
Diffstat (limited to 'Mac/Compat/rmdir.c')
-rw-r--r-- | Mac/Compat/rmdir.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Mac/Compat/rmdir.c b/Mac/Compat/rmdir.c index f31052f..2e406c2 100644 --- a/Mac/Compat/rmdir.c +++ b/Mac/Compat/rmdir.c @@ -9,10 +9,8 @@ rmdir(path) char *path; { IOParam pb; - char name[MAXPATH]; - strncpy(name, path, sizeof name); - pb.ioNamePtr= (StringPtr) c2pstr(name); + pb.ioNamePtr= (StringPtr) Pstring(path); pb.ioVRefNum= 0; if (PBDelete((ParmBlkPtr)&pb, FALSE) != noErr) { errno= EACCES; |