File black-box-1.4.8.patch of Package black-box

--- src/blackbox.c
+++ src/blackbox.c
@@ -27,11 +27,15 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
+#include <time.h>
 #include <SDL.h>
 #include <SDL_image.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
@@ -117,7 +121,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);
@@ -553,6 +557,8 @@
   SDL_UpdateRect(screen,0,0,0,0);
 }
 
+int abrand(int a, int b);
+
 void generate_field()
 {
   int x,y;
@@ -895,7 +901,7 @@
   }
 }
 
-main(int argc, char *argv[])
+int main(int argc, char *argv[])
 {
   printf("\nBlack-Box version %s, Copyright (C) 2000-2008 Karl Bartel\n",VERSION);
   printf("Black-Box comes with ABSOLUTELY NO WARRANTY; for details see COPYING'.\n");
openSUSE Build Service is sponsored by