1. ww
  2. cabinet

Commits

HanTuo  committed d637a7e

fix cas bug

  • Participants
  • Parent commits 661c070
  • Branches default

Comments (0)

Files changed (1)

File cabinet.go

View file
  • Ignore whitespace
 	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]))