diff options
author | Guido van Rossum <guido@python.org> | 1994-08-19 10:51:31 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-08-19 10:51:31 (GMT) |
commit | d4d77284408316a68cdc2ab9e8e1d4a06e534938 (patch) | |
tree | f25369ac9cc34663abcfd3be4b08035d8fe72c62 /Mac/Python | |
parent | e89bc75048d0142859379b2b92e77d984fdbef6e (diff) | |
download | cpython-d4d77284408316a68cdc2ab9e8e1d4a06e534938.zip cpython-d4d77284408316a68cdc2ab9e8e1d4a06e534938.tar.gz cpython-d4d77284408316a68cdc2ab9e8e1d4a06e534938.tar.bz2 |
Updates for THINK C 6.0. Moved the necessary UNIX emulation routines here.
Diffstat (limited to 'Mac/Python')
-rw-r--r-- | Mac/Python/macgetmtime.c | 2 | ||||
-rw-r--r-- | Mac/Python/macguesstabsize.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Mac/Python/macgetmtime.c b/Mac/Python/macgetmtime.c index c581009..9ba8136 100644 --- a/Mac/Python/macgetmtime.c +++ b/Mac/Python/macgetmtime.c @@ -1,4 +1,4 @@ -#include "::unixemu:stat.h" +#include <stat.h> /* Interfaced used by import.c */ diff --git a/Mac/Python/macguesstabsize.c b/Mac/Python/macguesstabsize.c index 7027e97..56b39a1 100644 --- a/Mac/Python/macguesstabsize.c +++ b/Mac/Python/macguesstabsize.c @@ -10,12 +10,12 @@ guesstabsize(path) char *path; { - char s[256]; + Str255 s; int refnum; Handle h; int tabsize = 0; s[0] = strlen(path); - strncpy(s+1, path, s[0]); + memcpy(s+1, path, s[0]); refnum = OpenResFile(s); /* printf("%s --> refnum=%d\n", path, refnum); */ if (refnum == -1) |