diff options
author | Lawrence González | 2022-05-16 13:24:14 -0400 |
---|---|---|
committer | Lawrence González | 2022-05-16 13:29:27 -0400 |
commit | d5344cfb32e4accb6a53723daef32e01b1e9690f (patch) | |
tree | 6261b1dada0567934c1a3725f45b34dcbed983b7 /werror_format_security.patch | |
parent | 645c0ba7706993c7bd754a1b84be338d5ccb3a69 (diff) | |
download | aur-d5344cfb32e4accb6a53723daef32e01b1e9690f.tar.gz |
Add patch to fix -Werror=format_security error
I have also added the CC-BY-SA 3.0 and CC0 licenses because they apply
to some assets.
Diffstat (limited to 'werror_format_security.patch')
-rw-r--r-- | werror_format_security.patch | 22 |
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()) { |