LVM2/libdm libdm-common.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: prajnoha at sourceware.org 2011-09-24 11:47:53
Modified files:
libdm : libdm-common.c
Log message:
readlink does not append a null byte to the output string!
libdm/libdm-common.c +1 -0
@@ -1145,6 +1145,7 @@log_sys_error ("readlink" , sysfs_path);return 0 ; } + temp_path[size] ='\0' ;if (!(kernel_dev_name =strrchr (temp_path,'/' ))) {log_error ("Could not locate device kernel name in sysfs path %s" , temp_path);