aboutsummaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorGerald Schaefer <[email protected]>2013-10-14 15:51:31 +0200
committerMartin Schwidefsky <[email protected]>2013-10-24 17:17:08 +0200
commit3cf11d776aafdb8540f4ba2c57376d2089f77dba (patch)
tree6273d59bf1f6f7f9186a276731ee277627f13180 /include/linux/timerqueue.h
parent57f47ba0cb74303230a373d27238a0aaa0df3775 (diff)
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 <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions