lightnvm: convert sprintf into strlcpy
authorJavier González <jg@lightnvm.io>
Sat, 15 Apr 2017 18:55:49 +0000 (20:55 +0200)
committerJens Axboe <axboe@fb.com>
Sun, 16 Apr 2017 16:06:25 +0000 (10:06 -0600)
commit6eb082452df1218e9c0ce1168c456f839ce5acb2
treeb12a4424e0b5115cd47ee95eb74591cddef554c8
parentd788c59be5fa98ef41cc4dbab8e0cd8a29df082c
lightnvm: convert sprintf into strlcpy

Convert sprintf calls to strlcpy in order to make possible buffer
overflow more obvious.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/core.c