]> git.cameronkatri.com Git - bsdgames-darwin.git/commit
games/battlestar: Fix the -Werror=restrict warning.
authorfox <fox@NetBSD.org>
Wed, 5 Feb 2020 20:11:54 +0000 (20:11 +0000)
committerfox <fox@NetBSD.org>
Wed, 5 Feb 2020 20:11:54 +0000 (20:11 +0000)
commitab68a55ee2f70a6069a6744bb9ab50507fd3fdc2
tree1072040387538114d4db73b45497f2d197f822f2
parent0889d1a3707a23c5c00c085923944d126938fafd
games/battlestar: Fix the -Werror=restrict warning.

Replace strcpy(1) with the safer snprintf(3) which guarantees NULL
termination of strings.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@
battlestar/parse.c