summaryrefslogtreecommitdiff
path: root/src/cgame
diff options
context:
space:
mode:
authorTheriaca <reichmeister@protonmail.com>2019-01-22 01:59:30 +0100
committerTheriaca <reichmeister@protonmail.com>2019-01-22 01:59:30 +0100
commit001b68a545797fd90505e523a1a4337e13f3b32c (patch)
tree798423069a22caab95d3eb6d182d48b9bafa5d58 /src/cgame
parentbc4579cc888a13527a6f2013adea8d0c73257c18 (diff)
fix all compiler warnings from "stock" code
Diffstat (limited to 'src/cgame')
-rw-r--r--src/cgame/cg_attachment.c2
1 files changed, 1 insertions, 1 deletions
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;
}