Use strncat() instead of strncpy()
Use strncat() instead of strncpy()

Changed to use strncat() instead of strncpy() when
constructing the string to be written via sysfs,
because strncpy() does not null-terminate the copy.

(This was not a problem because the memory allocated
 by malloc() was always filled with zeroes, but should
 be fixed to avoid problems in the event of subsequent
 code changes.)

Signed-off-by: Ewan D. Milne <2c554d25b86cf1e2efb352de0d4bd0940eeebcf1@redhat.com>

tasleson/libstoragemgmt,tasleson/libstoragemgmt,lazy404/libstoragemgmt,libstorage/libstoragemgmt,lazy404/libstoragemgmt,HP-Scale-out-Storage/libstoragemgmt,cathay4t/libstoragemgmt,HP-Scale-out-Storage/libstoragemgmt,lazy404/libstoragemgmt,joehandzik/libstoragemgmt,libstorage/libstoragemgmt,cathay4t/libstoragemgmt,jumitche/libstoragemgmt,tasleson/libstoragemgmt,libstorage/libstoragemgmt,cathay4t/libstoragemgmt,cathay4t/libstoragemgmt,joehandzik/libstoragemgmt,jumitche/libstoragemgmt,cathay4t/libstoragemgmt,lazy404/libstoragemgmt,jumitche/libstoragemgmt,libstorage/libstoragemgmt,HP-Scale-out-Storage/libstoragemgmt,tasleson/libstoragemgmt,jumitche/libstoragemgmt,HP-Scale-out-Storage/libstoragemgmt,tasleson/libstoragemgmt,joehandzik/libstoragemgmt,libstorage/libstoragemgmt,jumitche/libstoragemgmt,joehandzik/libstoragemgmt