[stgt] [PATCH] bs_sheepdog.c: fix an unsafe strncpy() call

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Sun Nov 24 20:29:57 CET 2013


On Sun, 24 Nov 2013 23:18:09 +0900
Hitoshi Mitake <mitake.hitoshi at gmail.com> wrote:

> The strncpy() call doesn't take a null terminator into account. On
> some environment, it conflicts with __builtin___strncpy_chk() and gcc
> warns.
> 
> Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
> ---
>  usr/bs_sheepdog.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list