mirror of
https://github.com/golang/go
synced 2024-11-22 07:44:43 -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:
parent
1971e1bd21
commit
7932950844
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user