From b5428d5a77bf6b5275ab6fb97cf0c41213017018 Mon Sep 17 00:00:00 2001 From: Blixibon Date: Thu, 20 Oct 2022 23:33:43 -0500 Subject: [PATCH] Fixed Response System not including scripts on Linux --- sp/src/game/server/AI_ResponseSystem.cpp | 3 ++- sp/src/responserules/runtime/response_system.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sp/src/game/server/AI_ResponseSystem.cpp b/sp/src/game/server/AI_ResponseSystem.cpp index 43fc871b..a46ddb36 100644 --- a/sp/src/game/server/AI_ResponseSystem.cpp +++ b/sp/src/game/server/AI_ResponseSystem.cpp @@ -2025,7 +2025,8 @@ void CResponseSystem::ParseInclude( CStringPool &includedFiles ) 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 includefile[0] = '\0'; diff --git a/sp/src/responserules/runtime/response_system.cpp b/sp/src/responserules/runtime/response_system.cpp index 653c5cbf..7ae9276c 100644 --- a/sp/src/responserules/runtime/response_system.cpp +++ b/sp/src/responserules/runtime/response_system.cpp @@ -1509,7 +1509,8 @@ void CResponseSystem::ParseInclude() 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 includefile[0] = '\0';