Skip to content

Commit 7932950

Browse files
committed
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
1 parent 1971e1b commit 7932950

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cmd/gc/lex.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ main(int argc, char *argv[])
4848
if(argc < 1)
4949
goto usage;
5050

51-
pathname = mal(100);
52-
if(getwd(pathname, 99) == 0)
51+
pathname = mal(1000);
52+
if(getwd(pathname, 999) == 0)
5353
strcpy(pathname, "/???");
5454

5555
fmtinstall('O', Oconv); // node opcodes

0 commit comments

Comments
 (0)