1
0
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:
Rob Pike 2009-04-10 02:50:22 -07:00
parent f9854978e2
commit 870c91aec2

View File

@ -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
}