forked from pool/maelstrom
- 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
21 lines
826 B
Diff
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));
|