diff options
Diffstat (limited to 'src/lib/syscall/errstr_darwin.go')
-rw-r--r-- | src/lib/syscall/errstr_darwin.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/syscall/errstr_darwin.go b/src/lib/syscall/errstr_darwin.go index 1ea357601..abb79b884 100644 --- a/src/lib/syscall/errstr_darwin.go +++ b/src/lib/syscall/errstr_darwin.go @@ -231,7 +231,7 @@ func str(val int64) string { // do it here rather than with fmt to avoid depend val /= 10; } buf[i] = byte(val + '0'); - return string(buf)[i:len(buf)]; + return string(buf[i:len(buf)]); } func Errstr(errno int64) string { |