cdogs-sdl/cdogs-sdl-gcc-14.patch
Ferdinand Thiessen 8557fceb33 - Update to version 2.2.0
* Add new game icons.
  * Fix game freeze when loading shareware wolf3d campaign.
  * Fix player 1 controls affecting others in player selection.
  * Fix joystick not working in pause menu.
  * Fix damage text not resetting.
  * Fix automaps for very large levels.
  * Fix repeated inputs when switching in/out of pause menu.
  * Fix uncommon crash when live background map is too small.
  * Fix crash when exiting some campaigns with custom ammo.
  * Improve menus by merging redefine keys and controls menu.

OBS-URL: https://build.opensuse.org/package/show/games/cdogs-sdl?expand=0&rev=56
2024-12-11 08:15:43 +00:00

17 lines
458 B
Diff

Author: Reiner Herrmann <reiner@reiner-h.de>
Description: Fix FTBFS with GCC 14
Bug-Debian: https://bugs.debian.org/1074873
Forwarded: https://github.com/cxong/cwolfmap/pull/3
--- a/src/cdogs/cwolfmap/zip/zip.c
+++ b/src/cdogs/cwolfmap/zip/zip.c
@@ -1673,7 +1673,7 @@
*bufsize = n;
}
- *buf = calloc(sizeof(unsigned char), n);
+ *buf = calloc(n, sizeof(unsigned char));
memcpy(*buf, zip->archive.m_pState->m_pMem, n);
return (ssize_t)n;