summaryrefslogtreecommitdiffstats
path: root/Mac/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Python')
-rw-r--r--Mac/Python/macgetmtime.c2
-rw-r--r--Mac/Python/macguesstabsize.c4
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)