block: simplify string handling in elv_iosched_store()
authorLi Zefan <lizf@cn.fujitsu.com>
Tue, 14 Oct 2008 06:49:56 +0000 (08:49 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 17 Oct 2008 06:46:57 +0000 (08:46 +0200)
commitee2e992cc28553f6c4dd1ab5483c8733c393626b
tree1947e8cb26f1018c20f89db93e06698cc17353f5
parente6d63840ba55ffd3a79aea6792aac6f29f338083
block: simplify string handling in elv_iosched_store()

strlcpy() guarantees the dest buffer is NULL teminated.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/elevator.c