Patched gear_strlcpy to assign NULL byte to proper index.