Commit acf01e66 authored by Joe Perches's avatar Joe Perches Committed by Greg Kroah-Hartman
Browse files

tty: hvcs: Fix odd use of strlcpy

parent 627a545c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -871,8 +871,8 @@ static void hvcs_set_pi(struct hvcs_partner_info *pi, struct hvcs_struct *hvcsd)
	hvcsd->p_partition_ID  = pi->partition_ID;

	/* copy the null-term char too */
	strlcpy(&hvcsd->p_location_code[0],
			&pi->location_code[0], sizeof(hvcsd->p_location_code));
	strlcpy(hvcsd->p_location_code, pi->location_code,
		sizeof(hvcsd->p_location_code));
}

/*