commit | c2fc8c8b3afbd15ec3e8ed4ca38667ec0a01ade8 | [log] [tgz] |
---|---|---|
author | Jason Evans <je@facebook.com> | Fri Oct 01 18:02:43 2010 -0700 |
committer | Jason Evans <je@facebook.com> | Fri Oct 01 18:02:43 2010 -0700 |
tree | 401aaeffa409a1ccc85709421200ff49e29afa5c | |
parent | 3377ffa1f4f8e67bce1e36624285e5baf5f9ecef [diff] |
Use offsetof() when sizing dynamic structures. Base dynamic structure size on offsetof(), rather than subtracting the size of the dynamic structure member. Results could differ on systems with strict data structure alignment requirements.