From 0534143024b31d5d2cd544a3989dd2c8baa5d5be Mon Sep 17 00:00:00 2001 From: fumiama Date: Sun, 19 Sep 2021 21:45:18 +0800 Subject: [PATCH] fix unix --- unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix.go b/unix.go index e2d7387..be12b15 100644 --- a/unix.go +++ b/unix.go @@ -12,7 +12,7 @@ func Hide(position int) { if position > 0 && position < len(os.Args) { pwdstr := (*[2]uintptr)(unsafe.Pointer(&os.Args[position])) for i := 0; i < len(os.Args[position]); i++ { - *(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(pwdstr)) + uintptr(i))) = '*' + *(*uint8)(unsafe.Pointer((*pwdstr)[0] + uintptr(i))) = '*' } } }