Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
black-box
black-box-1.4.7.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File black-box-1.4.7.patch of Package black-box
--- src/blackbox.c +++ src/blackbox.c @@ -27,10 +27,14 @@ #include <stdio.h> #include <stdlib.h> +#include <string.h> +#include <time.h> #include <SDL.h> #include <SDL_timer.h> #include <SDL_mixer.h> +#include <SDL_image.h> #include <signal.h> +#include <limits.h> #include "SFont.h" int fullscreen=1,difficulty=4,trihigh=1,sound=1; //settings @@ -116,7 +120,7 @@ SDL_Surface *LoadImage(char *datafile, int transparent) // reads one GIF into the memory { SDL_Surface *pic,*pic2; - char filename[200]; + char filename[PATH_MAX]; int i=0; sprintf(filename,"%s/gfx/%s",DATAPATH,datafile); @@ -644,6 +648,8 @@ SDL_UpdateRect(screen,0,0,0,0); } +int abrand(int a, int b); + void generate_field() { int x,y,crystal_num; @@ -983,7 +989,7 @@ } } -main(int argc, char *argv[]) +int main(int argc, char *argv[]) { printf("\nBlack-Box version %s, Copyright (C) 2000 Karl Bartel\n",VERSION); printf("Black-Box comes with ABSOLUTELY NO WARRANTY; for details see COPYING'.\n");
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