BarryServer : Git

All the code for all my projects
// BarryServer : Git / Orion / commit / 1628fcfdfdf2978ed9ccac96ee7d13bb3dc43a01 / vfs / vfs.c

// Related

Orion

Barry Keyboard/Mouse drivers + POSIX names for structs 1628fcf (2 years, 4 months ago)
diff --git a/vfs/vfs.c b/vfs/vfs.c
index c4784f2..396fd8f 100644
--- a/vfs/vfs.c
+++ b/vfs/vfs.c
@@ -475,7 +475,7 @@ getdents(int fd, void *buf, size_t count)
 		err = file_readdir(file, dent, i);
 		if (err < 0)
 			goto out;
-		size += sizeof(DirEnt) + dent->namelen;
+		size += sizeof(DirEnt) + dent->d_namelen;
 		*((char *) buf + size - 1) = '\0';
 		dent = (void *) ((char *) buf + size);
 	}