Commit 545e6a21 authored by Jack Jansen's avatar Jack Jansen

FSSpec names may be longer on carbon (1024 chars), cater for that in buffer sizes.

parent f23cafce
...@@ -115,7 +115,7 @@ PyMac_GetFullPath (FSSpec *fss, char *buf) ...@@ -115,7 +115,7 @@ PyMac_GetFullPath (FSSpec *fss, char *buf)
{ {
short err; short err;
FSSpec fss_parent, fss_current; FSSpec fss_parent, fss_current;
char tmpbuf[256]; char tmpbuf[1024];
int plen; int plen;
fss_current = *fss; fss_current = *fss;
...@@ -135,7 +135,7 @@ PyMac_GetFullPath (FSSpec *fss, char *buf) ...@@ -135,7 +135,7 @@ PyMac_GetFullPath (FSSpec *fss, char *buf)
fss_current = fss_parent; fss_current = fss_parent;
/* Prepend path component just found to buf */ /* Prepend path component just found to buf */
plen = fss_current.name[0]; plen = fss_current.name[0];
if (strlen(buf) + plen + 1 > 256) { if (strlen(buf) + plen + 1 > 1024) {
/* Oops... Not enough space (shouldn't happen) */ /* Oops... Not enough space (shouldn't happen) */
*buf = 0; *buf = 0;
return -1; return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment