Skip to content

Commit

Permalink
[S390] remove duplicate nul-termination of string
Browse files Browse the repository at this point in the history
strlcpy() does already NUL-terminate the destination string.

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Hendrik Brueckner authored and Martin Schwidefsky committed Mar 26, 2009
1 parent 6faf250 commit ced2c8b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/s390/kernel/early.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@ static void __init setup_boot_command_line(void)

/* copy arch command line */
strlcpy(boot_command_line, COMMAND_LINE, ARCH_COMMAND_LINE_SIZE);
boot_command_line[ARCH_COMMAND_LINE_SIZE - 1] = 0;

/* append IPL PARM data to the boot command line */
if (MACHINE_IS_VM) {
Expand Down

0 comments on commit ced2c8b

Please sign in to comment.