Fixed stack overflow

Wow! I thought I known how strncat() work :)