Fix offsetof()
diff --git a/include/stddef.h b/include/stddef.h
index 900c147..125d235 100644
--- a/include/stddef.h
+++ b/include/stddef.h
@@ -19,6 +19,6 @@
#endif
#undef offsetof
-#define offsetof(t,m) ((size_t)&((t *)0->m))
+#define offsetof(t,m) ((size_t)&((t *)0)->m)
#endif /* _STDDEF_H */
diff --git a/klibc/include/stddef.h b/klibc/include/stddef.h
index 900c147..125d235 100644
--- a/klibc/include/stddef.h
+++ b/klibc/include/stddef.h
@@ -19,6 +19,6 @@
#endif
#undef offsetof
-#define offsetof(t,m) ((size_t)&((t *)0->m))
+#define offsetof(t,m) ((size_t)&((t *)0)->m)
#endif /* _STDDEF_H */