patch: adjust to new function signature
This commit is contained in:
parent
028ea07d77
commit
a69a0b1919
2
patch.go
2
patch.go
|
@ -69,7 +69,7 @@ func (v *Repository) PatchFromBuffers(oldPath, newPath string, oldBuf, newBuf []
|
|||
var patchPtr *C.git_patch
|
||||
|
||||
oldPtr := toPointer(oldBuf)
|
||||
newPtr := (*C.char)(toPointer(newBuf))
|
||||
newPtr := toPointer(newBuf)
|
||||
|
||||
cOldPath := C.CString(oldPath)
|
||||
defer C.free(unsafe.Pointer(cOldPath))
|
||||
|
|
Loading…
Reference in New Issue