kfs: using len returned from sprintf insteads strlen()

Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>