Index: sys/ufs/ufs/dir.h =================================================================== --- sys/ufs/ufs/dir.h +++ sys/ufs/ufs/dir.h @@ -110,7 +110,7 @@ * */ #define DIRECTSIZ(namlen) \ - (((uintptr_t)&((struct direct *)0)->d_name + \ + ((offsetof(struct direct, d_name) + \ ((namlen)+1)*sizeof(((struct direct *)0)->d_name[0]) + 3) & ~3) #if (BYTE_ORDER == LITTLE_ENDIAN) #define DIRSIZ(oldfmt, dp) \