Permalink
Browse files

cgame: replace strncpy by Q_strncpyz

  • Loading branch information...
1 parent 2c3208f commit 14b4bc0fd7b72ebc3802e78b72811036697fb870 @Aranud Aranud committed Feb 16, 2017
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/cgame/cg_draw.c
View
@@ -3413,7 +3413,8 @@ void CG_DrawDemoRecording(void)
}
else
{
- strncpy(demostatus, "", sizeof(demostatus));
+ Q_strncpyz(demostatus, "", sizeof(demostatus));
+
}
if (cl_waverecording.integer)
@@ -3422,7 +3423,7 @@ void CG_DrawDemoRecording(void)
}
else
{
- strncpy(wavestatus, "", sizeof(wavestatus));
+ Q_strncpyz(wavestatus, "", sizeof(wavestatus));
}
Com_sprintf(status, sizeof(status), "RECORDING%s%s", demostatus, wavestatus);

0 comments on commit 14b4bc0

Please sign in to comment.