summarylogtreecommitdiffstats
path: root/werror_format_security.patch
diff options
context:
space:
mode:
Diffstat (limited to 'werror_format_security.patch')
-rw-r--r--werror_format_security.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/werror_format_security.patch b/werror_format_security.patch
new file mode 100644
index 000000000000..0f8537f2ed89
--- /dev/null
+++ b/werror_format_security.patch
@@ -0,0 +1,22 @@
+From 0e1f7b365aac401434a94198d6339fcc1f2c815b Mon Sep 17 00:00:00 2001
+From: Andrettin <6322423+Andrettin@users.noreply.github.com>
+Date: Fri, 13 May 2022 06:40:12 +0200
+Subject: [PATCH] Fixed warning in CPlayer::set_enemy_diplomatic_stance_with()
+
+---
+ src/player/player.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/player/player.cpp b/src/player/player.cpp
+index 56ae1b632..8c0768de7 100644
+--- a/src/player/player.cpp
++++ b/src/player/player.cpp
+@@ -5173,7 +5173,7 @@ void CPlayer::set_enemy_diplomatic_stance_with(CPlayer *player)
+ }
+ message += this->get_name() + " changed their diplomatic stance with us to enemy";
+
+- CPlayer::GetThisPlayer()->Notify(message.c_str());
++ CPlayer::GetThisPlayer()->notify(message);
+ } else if (this == CPlayer::GetThisPlayer()) {
+ std::string message = "We have changed our diplomatic stance with ";
+ if (player->uses_definite_article()) {