fixing strcat hash to strncat