]> Cypherpunks repositories - gostls13.git/commit
runtime: fix GOTRACEBACK on Plan 9
authorDavid du Colombier <0intro@gmail.com>
Wed, 9 Apr 2014 04:41:14 +0000 (06:41 +0200)
committerDavid du Colombier <0intro@gmail.com>
Wed, 9 Apr 2014 04:41:14 +0000 (06:41 +0200)
commita07f6adda8663f86701356bca341112846ed251f
tree5748ba45f4f12f6f03d22e1d48dfd8c780033862
parentb69238bfbec9c94b804c17fdfaf2e93ae9175cfc
runtime: fix GOTRACEBACK on Plan 9

Getenv() should not call malloc when called from
gotraceback(). Instead, we return a static buffer
in this case, with enough room to hold the longest
value.

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/85680043
src/pkg/runtime/env_plan9.c