]> Cypherpunks repositories - gostls13.git/commitdiff
gc: increase maximum path size in getwd from 100 to 1000.
authorRuss Cox <rsc@golang.org>
Wed, 11 Nov 2009 20:00:41 +0000 (12:00 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 11 Nov 2009 20:00:41 +0000 (12:00 -0800)
Fixes #31.

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

R=r1, r
https://golang.org/cl/154058

src/cmd/gc/lex.c

index c2818fc10ef1df88b2e6e294e741e42069627b92..14500dc75a2325ee720247782a268deeeb1dbdea 100644 (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