cleanup: fix segfault with strcat.