Fixed Response System not including scripts on Linux

This commit is contained in:
Blixibon 2022-10-20 23:33:43 -05:00
parent 2272b75772
commit b5428d5a77
2 changed files with 4 additions and 2 deletions

View File

@ -2025,7 +2025,8 @@ void CResponseSystem::ParseInclude( CStringPool &includedFiles )
if (len+1 != strlen(scriptfile)) if (len+1 != strlen(scriptfile))
{ {
Q_snprintf(includefile, sizeof(includefile), "%s/%s", includefile, token); Q_strncat( includefile, "/", sizeof( includefile ) );
Q_strncat( includefile, token, sizeof( includefile ) );
} }
else else
includefile[0] = '\0'; includefile[0] = '\0';

View File

@ -1509,7 +1509,8 @@ void CResponseSystem::ParseInclude()
if (len+1 != strlen(scriptfile)) if (len+1 != strlen(scriptfile))
{ {
Q_snprintf(includefile, sizeof(includefile), "%s/%s", includefile, token); Q_strncat( includefile, "/", sizeof( includefile ) );
Q_strncat( includefile, token, sizeof( includefile ) );
} }
else else
includefile[0] = '\0'; includefile[0] = '\0';