diff Mac/Python/macguesstabsize.c @ 1795:fa8bbd09f2e6 legacy-trunk

Updates for THINK C 6.0. Moved the necessary UNIX emulation routines here.
author Guido van Rossum <guido@python.org>
date Fri, 19 Aug 1994 10:51:31 +0000
parents cf29c09f07b6
children 8da03decef59
line wrap: on
line diff
--- a/Mac/Python/macguesstabsize.c	Thu Aug 18 16:18:13 1994 +0000
+++ b/Mac/Python/macguesstabsize.c	Fri Aug 19 10:51:31 1994 +0000
@@ -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)