Re: [PATCH] block: elevator.c: Cleaning up missing null-terminate in conjunction with strncpy

2014-07-28 Thread Jeff Moyer
Rickard Strandqvist writes: > Replacing strncpy with strlcpy to avoid strings that lacks null terminate. > And set a string to be empty from the start. > > Signed-off-by: Rickard Strandqvist > --- > block/elevator.c |4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a

[PATCH] block: elevator.c: Cleaning up missing null-terminate in conjunction with strncpy

2014-07-26 Thread Rickard Strandqvist
Replacing strncpy with strlcpy to avoid strings that lacks null terminate. And set a string to be empty from the start. Signed-off-by: Rickard Strandqvist --- block/elevator.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block/elevator.c b/block/elevator.c index 24c