diff options
Diffstat (limited to 'src/pkg/os/stat_darwin.go')
-rw-r--r-- | src/pkg/os/stat_darwin.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/os/stat_darwin.go b/src/pkg/os/stat_darwin.go index 1bdd37113..857c9068d 100644 --- a/src/pkg/os/stat_darwin.go +++ b/src/pkg/os/stat_darwin.go @@ -26,7 +26,7 @@ func dirFromStat(name string, dir *Dir, lstat, stat *syscall.Stat_t) *Dir { dir.Ctime_ns = uint64(syscall.TimespecToNsec(stat.Ctimespec)); for i := len(name) - 1; i >= 0; i-- { if name[i] == '/' { - name = name[i+1 : len(name)]; + name = name[i+1:]; break; } } |