Commits

Anonymous committed d637a7e

fix cas bug

Comments (0)

Files changed (1)

 	var coval, cnval *C.char
 	loval, lnval := len(oval), len(nval)
 	if loval > 0 {
-		coval = (*C.char)(unsafe.Pointer(&nval[0]))
+		coval = (*C.char)(unsafe.Pointer(&oval[0]))
 	}
 	if lnval > 0 {
 		cnval = (*C.char)(unsafe.Pointer(&nval[0]))