mirror of
https://github.com/golang/go
synced 2024-11-05 15:06:09 -07:00
fix typo breaking linux build
R=rsc OCL=27304 CL=27304
This commit is contained in:
parent
f9854978e2
commit
870c91aec2
@ -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 New Issue
Block a user