runtime: fix stringw test.

Null terminate string.  Make it endian-agnostic.

TBR=bradfitz
R=golang-codereviews
CC=golang-codereviews
https://golang.org/cl/106060044
This commit is contained in:
Keith Randall 2014-06-17 09:17:33 -07:00
parent 63393faedf
commit 2b309c6e22
2 changed files with 6 additions and 6 deletions

View file

@ -91,6 +91,6 @@ func gogoBytes() int32
var GogoBytes = gogoBytes
func gostringW([]byte) string
func gostringW([]uint16) string
var GostringW = gostringW