- sizeof (struct direct), off, 1, (int *)0);
- if (error)
+ sizeof (struct direct), off, 1, &count);
+ count = sizeof (struct direct) - count;
+#define MINDIRSIZ (sizeof (struct direct) - (MAXNAMLEN + 1))
+ if (error || count < MINDIRSIZ || count < DIRSIZ(dp))