fix mistake in length test in getlogin_r