Browse Source

spec coverage: fix memory ownership issue

Brad Fitzpatrick 11 years ago
parent
commit
1a596c3616
1 changed files with 1 additions and 1 deletions
  1. 1 1
      z_spec_test.go

+ 1 - 1
z_spec_test.go

@@ -144,7 +144,7 @@ func (sc specCoverage) readXRef(se xml.StartElement) []byte {
 			if b != nil {
 				panic("unexpected CharData")
 			}
-			b = []byte(v)
+			b = []byte(string(v))
 		case xml.EndElement:
 			if v.Name.Local != "xref" {
 				panic("expected </xref>")