diff Mac/Python/macgetargv.c @ 15787:b31a046f88a7 legacy-trunk

FSSpec names may be longer on carbon (1024 chars), cater for that in buffer sizes.
author Jack Jansen <jack.jansen@cwi.nl>
date Tue, 09 Jan 2001 22:25:49 +0000
parents a901c2c0166b
children 042dca1d4526
line wrap: on
line diff
--- a/Mac/Python/macgetargv.c	Tue Jan 09 22:24:56 2001 +0000
+++ b/Mac/Python/macgetargv.c	Tue Jan 09 22:25:49 2001 +0000
@@ -115,7 +115,7 @@
 {
 	short err;
 	FSSpec fss_parent, fss_current;
-	char tmpbuf[256];
+	char tmpbuf[1024];
 	int plen;
 
 	fss_current = *fss;
@@ -135,7 +135,7 @@
                 fss_current = fss_parent;
                 /* Prepend path component just found to buf */
     			plen = fss_current.name[0];
-    			if (strlen(buf) + plen + 1 > 256) {
+    			if (strlen(buf) + plen + 1 > 1024) {
     				/* Oops... Not enough space (shouldn't happen) */
     				*buf = 0;
     				return -1;