Skip to content

Commit

Permalink
Merge pull request #20 from cryptlex/muneeb/update-buffer-size
Browse files Browse the repository at this point in the history
fix: update buffer size to 4096
  • Loading branch information
ahmad-kemsan authored Aug 6, 2024
2 parents 15259fe + 6e4f831 commit 706fbba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cstring.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import "C"
import "unsafe"

const (
maxCArrayLength C.uint = 256
maxGoArrayLength C.int = 256
maxCArrayLength C.uint = 4096
maxGoArrayLength C.int = 4096
)

func goToCString(data string) *C.char {
Expand Down
4 changes: 2 additions & 2 deletions wcstring.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
)

const (
maxCArrayLength C.uint = 256
maxGoArrayLength C.int = 256
maxCArrayLength C.uint = 4096
maxGoArrayLength C.int = 4096
)

func goToCString(goString string) *C.ushort {
Expand Down

0 comments on commit 706fbba

Please sign in to comment.