Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2:Ports
maelstrom
maelstrom-3.0.6-screenlib_SDL_FrameBuf.cpp.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File maelstrom-3.0.6-screenlib_SDL_FrameBuf.cpp.patch of Package maelstrom
--- 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;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor