Messages in this thread | | | Date | Mon, 28 Jul 2003 13:44:24 +0200 | From | Wichert Akkerman <> | Subject | Re: PATCH: fix 2 byte data leak due to padding |
| |
Previously Alan Cox wrote: > sizeof(variable) can be suprising some times so I always use sizeof(type) out > of habit. (Think sizeof(x) when X later becomes a pointer)
when X becomes a pointer and you use sizeof(type of what X points to) you'll be in trouble anyway.
Wichert.
-- Wichert Akkerman <wichert@wiggy.net> It is simple to make things. http://www.wiggy.net/ It is hard to make things simple.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |