Home
last modified time | relevance | path

Searched hist:"276 d605081fbbc96be02318abb36119625b47bb3" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/s390/char/
H A Dtape_3590.cdiff 276d605081fbbc96be02318abb36119625b47bb3 Thu Jun 28 06:28:37 CDT 2018 Vasily Gorbik <gor@linux.ibm.com> s390/tape: fix gcc 8 stringop-truncation warning

Replace strncpy which is used to deliberately avoid string NUL-termination
with memcpy. This allows to get rid of gcc 8 stringop-truncation warning:

inlined from 'ext_to_int_kekl' at drivers/s390/char/tape_3590.c:123:2:
./include/linux/string.h:246:9: warning: '__builtin_strncpy'
output may be truncated copying 64 bytes from a string of length 64
[-Wstringop-truncation]

Also replaces "for" loop on memset.

Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>