mirror of
https://github.com/golang/go
synced 2024-11-05 18:36:08 +00:00
fix typo breaking linux build
R=rsc OCL=27304 CL=27304
This commit is contained in:
parent
f9854978e2
commit
870c91aec2
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ func readdirnames(file *File, count int) (names []string, err *os.Error) {
|
|||
if dirent.Ino == 0 { // File absent in directory.
|
||||
continue
|
||||
}
|
||||
var name = string(dirent.Name[0:clen(dirent.Namlen)]);
|
||||
var name = string(dirent.Name[0:clen(dirent.Name)]);
|
||||
if name == "." || name == ".." { // Useless names
|
||||
continue
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue