aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime')
-rw-r--r--src/pkg/runtime/print1.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/print1.go b/src/pkg/runtime/print1.go
index 28faa7cbbb..93f83ed26f 100644
--- a/src/pkg/runtime/print1.go
+++ b/src/pkg/runtime/print1.go
@@ -54,7 +54,7 @@ func snprintf(dst *byte, n int32, s *byte) {
gp := getg()
gp.writebuf = buf[0:0 : n-1] // leave room for NUL, this is called from C
- vprintf(gostring(s), add(unsafe.Pointer(&s), unsafe.Sizeof(s)))
+ vprintf(gostringnocopy(s), add(unsafe.Pointer(&s), unsafe.Sizeof(s)))
buf[len(gp.writebuf)] = '\x00'
gp.writebuf = nil
}