linux/drivers/s390
Gerald Schaefer 3cf11d776a s390/monwriter: fix smatch warning for strcpy()
This patch fixes the following smatch warning:
monwrite_diag() error: strcpy() '"LNXAPPL"' too large for 'id.prod_nr'
(8 vs 7)
Using strcpy() is wrong, because it also copies the terminating null
byte, but in this case the extra copied null byte will be overwritten
right after the strcpy(), so there is no real problem here.
Use strncpy() to fix the warning.

Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2013-10-24 17:17:08 +02:00
..
block s390/s390dbf: use debug_level_enabled() where applicable 2013-10-24 17:16:54 +02:00
char s390/monwriter: fix smatch warning for strcpy() 2013-10-24 17:17:08 +02:00
cio s390/eadm_sch: improve quiesce handling 2013-10-24 17:16:58 +02:00
crypto s390/s390dbf: use debug_level_enabled() where applicable 2013-10-24 17:16:54 +02:00
kvm s390/irq: rework irq subclass handling 2013-09-04 17:19:13 +02:00
net s390/s390dbf: use debug_level_enabled() where applicable 2013-10-24 17:16:54 +02:00
scsi s390/s390dbf: use debug_level_enabled() where applicable 2013-10-24 17:16:54 +02:00
Makefile [S390] split/move machine check handler code 2009-03-26 15:24:10 +01:00