summaryrefslogtreecommitdiff
path: root/Mac/Compat/macstat.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-01-18 13:55:41 +0000
committerJack Jansen <jack.jansen@cwi.nl>1995-01-18 13:55:41 +0000
commit67132b3de71751d90cfe69a235d47b6ceb327082 (patch)
tree86999b4d590e27717460ee5ad676ec5e2121c939 /Mac/Compat/macstat.c
parent5f653091d1c5a453b8a0c71b304c600c0f3f52b0 (diff)
downloadcpython-git-67132b3de71751d90cfe69a235d47b6ceb327082.tar.gz
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/macstat.c')
-rw-r--r--Mac/Compat/macstat.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Mac/Compat/macstat.c b/Mac/Compat/macstat.c
index 564da1030f..0f690e098c 100644
--- a/Mac/Compat/macstat.c
+++ b/Mac/Compat/macstat.c
@@ -21,10 +21,9 @@ macstat(path, buf)
FileParam f;
HFileInfo hf;
} pb;
- char name[256];
short err;
- pb.d.ioNamePtr = (unsigned char *)c2pstr(strcpy(name, path));
+ pb.d.ioNamePtr = (unsigned char *)Pstring(path);
pb.d.ioVRefNum = 0;
pb.d.ioFDirIndex = 0;
pb.d.ioDrDirID = 0;