Bugfix: allocate space for the trailing NUL!