diff options
| author | Guido van Rossum <guido@python.org> | 1994-08-19 10:51:31 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 1994-08-19 10:51:31 +0000 |
| commit | d4d77284408316a68cdc2ab9e8e1d4a06e534938 (patch) | |
| tree | f25369ac9cc34663abcfd3be4b08035d8fe72c62 /Mac/Python/macguesstabsize.c | |
| parent | e89bc75048d0142859379b2b92e77d984fdbef6e (diff) | |
| download | cpython-git-d4d77284408316a68cdc2ab9e8e1d4a06e534938.tar.gz | |
Updates for THINK C 6.0. Moved the necessary UNIX emulation routines here.
Diffstat (limited to 'Mac/Python/macguesstabsize.c')
| -rw-r--r-- | Mac/Python/macguesstabsize.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Python/macguesstabsize.c b/Mac/Python/macguesstabsize.c index 7027e97ac4..56b39a1521 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) |
