Files
maelstrom/maelstrom-3.0.6-screenlib_SDL_FrameBuf.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

25 lines
784 B
Diff

--- screenlib/SDL_FrameBuf.cpp.orig 2001-07-22 23:03:13.000000000 +0200
+++ screenlib/SDL_FrameBuf.cpp 2014-09-28 14:02:09.704474449 +0200
@@ -628,7 +628,7 @@
found = 0;
for ( which=0; !found; ++which ) {
- sprintf(file, "%s%d.bmp", prefix, which);
+ snprintf(file, sizeof(file), "%s%d.bmp", prefix, which);
if ( ((fp=fopen(file, "r")) == NULL) &&
((fp=fopen(file, "w")) != NULL) ) {
found = 1;
@@ -847,10 +847,8 @@
/* Update the dirty rectangle map with the new list */
for ( i=0; i<dirtymaplen; ++i ) {
if ( dirtymap[i] != NULL ) {
- dirtymap[i] = (SDL_Rect *)(
- ((int)dirtymap[i]-(int)updatelist) +
- (int)newlist
- );
+ dirtymap[i] = newlist
+ + (dirtymap[i]-updatelist);
}
}
delete[] updatelist;