SHA256
1
0
forked from pool/vkquake
Dominique Leuenberger 2021-12-07 22:59:57 +00:00 committed by Git OBS Bridge
commit 3586ac0b0d
3 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,25 @@
From 6c16e1ee44f0ce02fdac3a83df744a79305af13e Mon Sep 17 00:00:00 2001
From: "Andrew J. Hesford" <ajh@sideband.org>
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

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Dec 6 20:01:40 UTC 2021 - Martin Hauke <mardnh@gmx.de>
- Add patch:
* 0001-Fix-format-overflow-warning-with-32-bit-gcc.patch
-------------------------------------------------------------------
Fri Nov 26 16:42:03 UTC 2021 - Martin Hauke <mardnh@gmx.de>

View File

@ -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