From 6e4f8315d9a1c092b23968d896e8c853051872a3 Mon Sep 17 00:00:00 2001 From: muneebkq Date: Tue, 6 Aug 2024 16:49:48 +0530 Subject: [PATCH] fix: update buffer size to 4096 --- cstring.go | 4 ++-- wcstring.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cstring.go b/cstring.go index 98cc6bd..bf829a8 100644 --- a/cstring.go +++ b/cstring.go @@ -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 { diff --git a/wcstring.go b/wcstring.go index be60660..577d956 100644 --- a/wcstring.go +++ b/wcstring.go @@ -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 {