aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/error.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime/error.go')
-rw-r--r--src/pkg/runtime/error.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/error.go b/src/pkg/runtime/error.go
index 54591ee43e..3ea93680ce 100644
--- a/src/pkg/runtime/error.go
+++ b/src/pkg/runtime/error.go
@@ -85,7 +85,7 @@ type errorCString struct{ cstr unsafe.Pointer }
func (e errorCString) RuntimeError() {}
func (e errorCString) Error() string {
- return "runtime error: " + cstringToGo(e.cstr)
+ return "runtime error: " + gostringnocopy((*byte)(e.cstr))
}
// For calling from C.