« Previous | Next » 

Revision 9d055d8a

ID9d055d8ac83cfd590263e8862ff683f705dfdf56

Added by Jim Meyering over 11 years ago

vscsi: avoid unwarranted strncpy

Don't use strncpy when the source string is known to fit
in the destination buffer. Use equivalent memcpy.
We could even use strcpy, here, but some static analyzers
warn about that, so don't add new uses.

Acked-by: David Gibson <>
Signed-off-by: Jim Meyering <>
Signed-off-by: Anthony Liguori <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences