adding support for zeroing buffers - patch'ish by MatthiasM
Authored by: matzon 2010-11-24
Parent: [r3455]
Child: [r3457]