SHA256
1
0
forked from pool/maelstrom
Files
maelstrom/maelstrom-3.0.6-load.cpp.patch
Matthias Mailänder f228bb2190 Accepting request 252721 from home:nemysis
- Change Desktop entry file
- Remove leading article from Summary
- Change URL
- Remove obsolete patches
- Add new patches from Gentoo, Fedora and my port in FreeBSD
- Add patches, correct FSF Address add missing includes
- Add BuildRequires for desktop-file-utils
- Change description
- Fix paths
- Simplify installation handling
- Use install-binPROGRAMS and normal Name for executables Maelstrom
  and Maelstrom-netd

I maintain Maelstorm in FreeBSD.

OBS-URL: https://build.opensuse.org/request/show/252721
OBS-URL: https://build.opensuse.org/package/show/games/maelstrom?expand=0&rev=8
2014-09-30 17:38:30 +00:00

21 lines
826 B
Diff

--- load.cpp.orig 2000-02-15 03:47:39.000000000 +0100
+++ load.cpp 2014-09-28 22:47:39.492006169 +0200
@@ -81,7 +81,7 @@
SDL_Surface *bmp, *title;
/* Open the title file -- we know its colormap is our global one */
- sprintf(file, "Images"DIR_SEP"Maelstrom_Titles#%d.bmp", title_id);
+ snprintf(file, sizeof(file), "Images"DIR_SEP"Maelstrom_Titles#%d.bmp", title_id);
bmp = SDL_LoadBMP(path.Path(file));
if ( bmp == NULL ) {
return(NULL);
@@ -103,7 +103,7 @@
Uint16 w, h;
/* Open the cicn sprite file.. */
- sprintf(file, "Images"DIR_SEP"Maelstrom_Icon#%hd.cicn", cicn_id);
+ snprintf(file, sizeof(file), "Images"DIR_SEP"Maelstrom_Icon#%hd.cicn", cicn_id);
if ( (cicn_src=SDL_RWFromFile(path.Path(file), "r")) == NULL ) {
error("GetCIcon(%hd): Can't open CICN %s: ",
cicn_id, path.Path(file));