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