diff options
Diffstat (limited to 'src/pkg/runtime/error.go')
| -rw-r--r-- | src/pkg/runtime/error.go | 2 |
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. |
