Commit 79329508 authored by Russ Cox's avatar Russ Cox

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
parent 1971e1bd
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment