From 20d5203d11f04853fc42fff5edc3e5b578b574c383b4a4d286bed409d15bfb24 Mon Sep 17 00:00:00 2001 From: Dirk Stoecker Date: Tue, 7 Dec 2021 09:27:19 +0000 Subject: [PATCH] Accepting request 936116 from home:mnhauke:games - Add patch: * 0001-Fix-format-overflow-warning-with-32-bit-gcc.patch OBS-URL: https://build.opensuse.org/request/show/936116 OBS-URL: https://build.opensuse.org/package/show/games/vkquake?expand=0&rev=23 --- ...mat-overflow-warning-with-32-bit-gcc.patch | 25 +++++++++++++++++++ vkquake.changes | 6 +++++ vkquake.spec | 2 ++ 3 files changed, 33 insertions(+) create mode 100644 0001-Fix-format-overflow-warning-with-32-bit-gcc.patch diff --git a/0001-Fix-format-overflow-warning-with-32-bit-gcc.patch b/0001-Fix-format-overflow-warning-with-32-bit-gcc.patch new file mode 100644 index 0000000..35f4cc1 --- /dev/null +++ b/0001-Fix-format-overflow-warning-with-32-bit-gcc.patch @@ -0,0 +1,25 @@ +From 6c16e1ee44f0ce02fdac3a83df744a79305af13e Mon Sep 17 00:00:00 2001 +From: "Andrew J. Hesford" +Date: Fri, 26 Nov 2021 07:57:31 -0500 +Subject: [PATCH] Fix format overflow warning with 32-bit gcc + +--- + Quake/gl_model.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Quake/gl_model.c b/Quake/gl_model.c +index 75d2ae6..062ce2a 100644 +--- a/Quake/gl_model.c ++++ b/Quake/gl_model.c +@@ -2465,7 +2465,7 @@ visdone: + + if (i < mod->numsubmodels-1) + { // duplicate the basic information +- char name[10]; ++ char name[12]; + + sprintf (name, "*%i", i+1); + loadmodel = Mod_FindName (name); +-- +2.34.1 + diff --git a/vkquake.changes b/vkquake.changes index 7964e2d..b91d49f 100644 --- a/vkquake.changes +++ b/vkquake.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Dec 6 20:01:40 UTC 2021 - Martin Hauke + +- Add patch: + * 0001-Fix-format-overflow-warning-with-32-bit-gcc.patch + ------------------------------------------------------------------- Fri Nov 26 16:42:03 UTC 2021 - Martin Hauke diff --git a/vkquake.spec b/vkquake.spec index ea7056a..b055672 100644 --- a/vkquake.spec +++ b/vkquake.spec @@ -25,6 +25,8 @@ License: GPL-2.0-or-later Group: Amusements/Games/3D/Shoot URL: https://github.com/Novum/vkQuake Source: https://github.com/Novum/vkQuake/archive/refs/tags/%{version}.tar.gz#/vkQuake-%{version}.tar.gz +# PATCH-FIX-UPSTREAM https://github.com/Novum/vkQuake/pull/400 +Patch0: 0001-Fix-format-overflow-warning-with-32-bit-gcc.patch Source99: %{name}.changes Source100: appdata.xml Source101: %{name}.desktop