Correct readlink usage in sysfs.c
authorNeilBrown <neilb@suse.de>
Fri, 18 Jul 2008 06:37:16 +0000 (16:37 +1000)
committerNeilBrown <neilb@suse.de>
Fri, 18 Jul 2008 06:37:16 +0000 (16:37 +1000)
commit7364918895b6b014d1a675c38973845cdf3baf41
tree1025690bb5cbf057adb00929c918ba91b00fc8e9
parent44d2e36556921e82a9fde02b554f799741c92531
Correct readlink usage in sysfs.c

readlink doesn't nul-terminate the returned string, so we must
be sure to do that.

Signed-off-by: Neil Brown <neilb@suse.de>
sysfs.c