diff options
Diffstat (limited to 'src/runtime/string.go')
| -rw-r--r-- | src/runtime/string.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/string.go b/src/runtime/string.go index 640ee02a3c..e43f4cca51 100644 --- a/src/runtime/string.go +++ b/src/runtime/string.go @@ -51,8 +51,8 @@ func concatstrings(buf *tmpBuf, a []string) string { } s, b := rawstringtmp(buf, l) for _, x := range a { - copy(b, x) - b = b[len(x):] + n := copy(b, x) + b = b[n:] } return s } |
