From: Russ Cox Date: Wed, 11 Nov 2009 20:00:41 +0000 (-0800) Subject: gc: increase maximum path size in getwd from 100 to 1000. X-Git-Tag: weekly.2009-11-12~32 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=793295084480ab44ff9317a66d48ef1cc54961e6;p=gostls13.git gc: increase maximum path size in getwd from 100 to 1000. Fixes #31. To try the fix before the next release: hg pull -u R=r1, r https://golang.org/cl/154058 --- diff --git a/src/cmd/gc/lex.c b/src/cmd/gc/lex.c index c2818fc10e..14500dc75a 100644 --- a/src/cmd/gc/lex.c +++ b/src/cmd/gc/lex.c @@ -48,8 +48,8 @@ main(int argc, char *argv[]) if(argc < 1) goto usage; - pathname = mal(100); - if(getwd(pathname, 99) == 0) + pathname = mal(1000); + if(getwd(pathname, 999) == 0) strcpy(pathname, "/???"); fmtinstall('O', Oconv); // node opcodes