summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-01-09 22:25:49 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-01-09 22:25:49 (GMT)
commitebadcb1c1df32c381897998e2ee3281f80e80ec7 (patch)
tree78596be001708fb48c38fa90888bab68507720d1 /Mac
parent91faef83ca4c4bb9989e43dcbeb9b2618d452c8a (diff)
downloadcpython-ebadcb1c1df32c381897998e2ee3281f80e80ec7.zip
cpython-ebadcb1c1df32c381897998e2ee3281f80e80ec7.tar.gz
cpython-ebadcb1c1df32c381897998e2ee3281f80e80ec7.tar.bz2
FSSpec names may be longer on carbon (1024 chars), cater for that in buffer sizes.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Python/macgetargv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Python/macgetargv.c b/Mac/Python/macgetargv.c
index b845781..bef197c 100644
--- a/Mac/Python/macgetargv.c
+++ b/Mac/Python/macgetargv.c
@@ -115,7 +115,7 @@ PyMac_GetFullPath (FSSpec *fss, char *buf)
{
short err;
FSSpec fss_parent, fss_current;
- char tmpbuf[256];
+ char tmpbuf[1024];
int plen;
fss_current = *fss;
@@ -135,7 +135,7 @@ PyMac_GetFullPath (FSSpec *fss, char *buf)
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;