Terminates the copied string.

Signed-off-by: João Sampaio <jpmelos@gmail.com>