go/src/os/user
Alex Brainman 53f27474a4 syscall, internal/syscall/windows: remove utf16PtrToString parameter
CL 208617 introduced syscall.utf16PtrToString and
internal/syscall/windows.UTF16PtrToString functions.

Original version of CL 208617 did not include syscall.utf16PtrToString
and internal/syscall/windows.UTF16PtrToString max parameter. The
parameter was added by Brad at the request of Ian. Ian said:

"In some cases it seems at least possible that the null terminator is
not present. I think it would be safer if we passed a maximum length
here."

The syscall.utf16PtrToString and
internal/syscall/windows.UTF16PtrToString function are designed to work
with only null terminated strings. So max parameter is superfluous.

This change removes max parameter.

Updates #34972

Change-Id: Ifea65dbd86bca8a08353579c6b9636c6f963d165
Reviewed-on: https://go-review.googlesource.com/c/go/+/228858
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
2020-05-03 07:23:32 +00:00
..
cgo_lookup_unix.go
cgo_unix_test.go
getgrouplist_darwin.go
getgrouplist_unix.go
listgroups_aix.go
listgroups_solaris.go
listgroups_unix.go
lookup.go
lookup_android.go
lookup_plan9.go
lookup_stubs.go all: remove the nacl port (part 1) 2019-10-09 06:14:44 +00:00
lookup_unix.go all: remove the nacl port (part 1) 2019-10-09 06:14:44 +00:00
lookup_unix_test.go all: remove the nacl port (part 1) 2019-10-09 06:14:44 +00:00
lookup_windows.go syscall, internal/syscall/windows: remove utf16PtrToString parameter 2020-05-03 07:23:32 +00:00
user.go
user_test.go