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

tty: hvcs: Fix odd use of strlcpy

Use the typical style of array, not the equivalent &array[0].
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Link: https://lore.kernel.org/r/1be432798311378947ec4e6051cad1235b6eccbb.1562283944.git.joe@perches.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 627a545c
...@@ -871,8 +871,8 @@ static void hvcs_set_pi(struct hvcs_partner_info *pi, struct hvcs_struct *hvcsd) ...@@ -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; hvcsd->p_partition_ID = pi->partition_ID;
/* copy the null-term char too */ /* copy the null-term char too */
strlcpy(&hvcsd->p_location_code[0], strlcpy(hvcsd->p_location_code, pi->location_code,
&pi->location_code[0], sizeof(hvcsd->p_location_code)); sizeof(hvcsd->p_location_code));
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment