Fixed a bug related to strncat on Linux (Mac is actually the one with the buggy behavior)