summaryrefslogtreecommitdiffstats
path: root/Mac/Compat/rmdir.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-01-18 13:55:41 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-01-18 13:55:41 (GMT)
commit67132b3de71751d90cfe69a235d47b6ceb327082 (patch)
tree86999b4d590e27717460ee5ad676ec5e2121c939 /Mac/Compat/rmdir.c
parent5f653091d1c5a453b8a0c71b304c600c0f3f52b0 (diff)
downloadcpython-67132b3de71751d90cfe69a235d47b6ceb327082.zip
cpython-67132b3de71751d90cfe69a235d47b6ceb327082.tar.gz
cpython-67132b3de71751d90cfe69a235d47b6ceb327082.tar.bz2
Some of these were overwriting their argument with a pascal
string. Use own Pstring() routine (which uses a static buffer) everywhere.
Diffstat (limited to 'Mac/Compat/rmdir.c')
-rw-r--r--Mac/Compat/rmdir.c4
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;