On 05/02/2020 21:28, Joerg Sonnenberger wrote:
On Wed, Feb 05, 2020 at 08:11:54PM +0000, Santhosh Raju wrote:
Module Name: src
Committed By: fox
Date: Wed Feb 5 20:11:54 UTC 2020
Modified Files:
src/games/battlestar: parse.c
Log Message:
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.
This can all use plain memcpy?
And if not memcpy, strlcpy is a better choice for replacing strcpy than
snprintf.
Roy