diff --git a/src/qcommon/q_shared.c b/src/qcommon/q_shared.c index 494948dcd0..9fb229c8d2 100644 --- a/src/qcommon/q_shared.c +++ b/src/qcommon/q_shared.c @@ -170,7 +170,7 @@ void COM_StripFilename(const char *in, char *out) { char *end; - Q_strncpyz(out, in, strlen(in) + 1); + Q_strncpyz(out, in, MAX_QPATH); end = COM_SkipPath(out); *end = 0; }