1
0
mirror of https://github.com/golang/go synced 2024-11-26 00:48:01 -07:00

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
This commit is contained in:
Russ Cox 2009-11-11 12:00:41 -08:00
parent 1971e1bd21
commit 7932950844

View File

@ -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