libmultipath: fixup string copy and comparison
authorHannes Reinecke <hare@suse.de>
Thu, 16 Jun 2016 08:38:04 +0000 (10:38 +0200)
committerHannes Reinecke <hare@suse.de>
Thu, 16 Jun 2016 08:38:04 +0000 (10:38 +0200)
commit3984a166e75f375f257bbd4346f44feb42258658
tree820bee9888463d88f17fbd065c4170fd40df1ec1
parent4679bd54ab1fc668d86ef2560ea4317eca363d66
libmultipath: fixup string copy and comparison

When doing a strncpy or strncmp we need to omit the trailing
NULL in the length to avoid any possible overflow.
Found by coverity.

Signed-off-by: Hannes Reinecke <hare@suse.com>
libmpathpersist/mpath_persist.c
libmultipath/configure.c
libmultipath/dmparser.c
libmultipath/prio.c
libmultipath/structs_vec.c
libmultipath/waiter.c