Bugfix: Valgrind reported buf overflow.