]> arthur.barton.de Git - ngircd-alex.git/commit
array: remove alignment of requested size
authorFlorian Westphal <fw@strlen.de>
Sun, 9 Jan 2011 18:28:50 +0000 (19:28 +0100)
committerFlorian Westphal <fw@strlen.de>
Sun, 9 Jan 2011 18:28:50 +0000 (19:28 +0100)
commit994a003aba9aac4a8adca7f4f4fec0889b0f2bb1
tree2a7b890e5ca3e437fea16e04c31bbc926809d9b1
parenteda2556e0919e48aa8fb7556383aa81a089b4135
array: remove alignment of requested size

libc should know better than us.
Also, this helps debugging with tools like valgrind:
When you allocate an array of size x, and then erronoulsy
use x+1 valgrind cannot detect the bug because due to ALIGN_()
made by array.c we might have allocated more than size x...
src/ngircd/array.c