Fix for wrong usage of strncat (thanks Pavol)