OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: Fix code issues detected using GCC 8
[sagit-ice-cold/kernel_xiaomi_msm8998.git]
/
drivers
/
scsi
/
scsi_devinfo.c
diff --git
a/drivers/scsi/scsi_devinfo.c
b/drivers/scsi/scsi_devinfo.c
index
75f2179
..
08062f2
100644
(file)
--- a/
drivers/scsi/scsi_devinfo.c
+++ b/
drivers/scsi/scsi_devinfo.c
@@
-291,7
+291,7
@@
static void scsi_strcpy_devinfo(char *name, char *to, size_t to_length,
from_length = strlen(from);
/* this zero-pads the destination */
-
strn
cpy(to, from, to_length);
+
mem
cpy(to, from, to_length);
if (from_length < to_length && !compatible) {
/*
* space pad the string if it is short.