From 793295084480ab44ff9317a66d48ef1cc54961e6 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 11 Nov 2009 12:00:41 -0800 Subject: [PATCH] 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 --- src/cmd/gc/lex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/gc/lex.c b/src/cmd/gc/lex.c index c2818fc10ef..14500dc75a2 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