From 2425082a049df9b9219b8d1710baedf0543ad6ba Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sun, 3 Apr 2022 14:58:04 +0100 Subject: [PATCH] S/W last instance of strncpy usage. --- src/client/refresh/soft/sw_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/refresh/soft/sw_main.c b/src/client/refresh/soft/sw_main.c index cba0ffbb..549ce2d6 100644 --- a/src/client/refresh/soft/sw_main.c +++ b/src/client/refresh/soft/sw_main.c @@ -1727,7 +1727,7 @@ RE_SetSky (char *name, float rotate, vec3_t axis) int i; char pathname[MAX_QPATH]; - strncpy (skyname, name, sizeof(skyname)-1); + Q_strlcpy (skyname, name, sizeof(skyname)); VectorCopy (axis, skyaxis); for (i=0 ; i<6 ; i++)