fixed issue #9 (strncat buffer length)