diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2020-03-29 11:46:57 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2020-03-29 11:46:57 +0200 |
commit | b2b602040de53f1f4e1905e507e0aa740928f3e9 (patch) | |
tree | 6fb6f835ee7d76ca512a1d1dba505bf912cdbab1 /src/cgame/cg_attachment.c | |
parent | 95aac45e9a1e93b3016d7d221b4d8b43e3b556c4 (diff) |
Fix compiler warnings
Mostly a metric ton of unused variables
Diffstat (limited to 'src/cgame/cg_attachment.c')
-rw-r--r-- | src/cgame/cg_attachment.c | 2 |
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; } |