allocate only the alignment bytes for \0-bytes records

Reported-by: Daniel Kowalski <d.kowalski@samsung.com>