From 001b68a545797fd90505e523a1a4337e13f3b32c Mon Sep 17 00:00:00 2001 From: Theriaca Date: Tue, 22 Jan 2019 01:59:30 +0100 Subject: fix all compiler warnings from "stock" code --- src/cgame/cg_attachment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cgame') diff --git a/src/cgame/cg_attachment.c b/src/cgame/cg_attachment.c index 0d3c8ea..3224159 100644 --- a/src/cgame/cg_attachment.c +++ b/src/cgame/cg_attachment.c @@ -371,7 +371,7 @@ void CG_SetAttachmentTag( attachment_t *a, refEntity_t parent, a->parent = parent; a->model = model; - strncpy( a->tagName, tagName, MAX_STRING_CHARS ); + strncpy( a->tagName, tagName, MAX_STRING_CHARS - 1 ); a->tagValid = qtrue; } -- cgit