summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_admin.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index 7aa972f..ea8efe5 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -9670,11 +9670,11 @@ qboolean G_admin_rlist( gentity_t *ent, int skiparg )
if( strlen(report->reason) > 80 )
{
- strncpy( reason, report->reason, 77 );
+ Q_strncpyz( reason, report->reason, 77 );
strcat( reason, "..." );
} else {
- strncpy( reason, report->reason, 80 );
- }
+ Q_strncpyz( reason, report->reason, 80 );
+ }
ADMBP( va( "%4i %s^7 %-15s Expires: %s\n"
" | Reported by: %-15s^7 Level:%2i\n"
@@ -10140,11 +10140,11 @@ qboolean G_admin_rarclist( gentity_t *ent, int skiparg )
if( strlen(archive->reason) > 80 )
{
- strncpy( reason, archive->reason, 77 );
+ Q_strncpyz( reason, archive->reason, 77 );
strcat( reason, "..." );
} else {
- strncpy( reason, archive->reason, 80 );
- }
+ Q_strncpyz( reason, archive->reason, 80 );
+ }
ADMBP( va( "%4i %s^7 %-15s Expires: %s\n"
" | Reported by: %-15s^7 Level:%2i\n"