diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-08-13 23:44:11 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2018-08-13 23:44:11 +0200 |
commit | 14e6315f417cec61b12c033464972da8c52b8cde (patch) | |
tree | 698f13ab538cde6cc63a7a6a58165b0da4a6cb64 /src/game | |
parent | da4b56aa95ce0f52d5fec3b95fa7c4d21f7077f2 (diff) |
Replace calls to stnrcpy with calls to Q_strncpyz.
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_admin.c | 12 |
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" |