Skip to content

Commit

Permalink
gc: increase maximum path size in getwd from 100 to 1000.
Browse files Browse the repository at this point in the history
Fixes #31.

To try the fix before the next release:
	hg pull -u

R=r1, r
https://golang.org/cl/154058
  • Loading branch information
rsc committed Nov 11, 2009
1 parent 1971e1b commit 7932950
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd/gc/lex.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7932950

Please sign in to comment.