SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
34
games/spatial/patches/patch-spatial_intro_c
Normal file
34
games/spatial/patches/patch-spatial_intro_c
Normal file
|
@ -0,0 +1,34 @@
|
|||
--- spatial/intro.c.orig Fri Aug 27 21:02:51 1993
|
||||
+++ spatial/intro.c Wed Dec 5 15:03:28 2007
|
||||
@@ -3,8 +3,13 @@
|
||||
notice is retained. */
|
||||
|
||||
#include <stdio.h>
|
||||
+#include <string.h>
|
||||
+#include <stdlib.h>
|
||||
+#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
+#include <unistd.h>
|
||||
#include <X11/Xlib.h>
|
||||
+#include <X11/Xutil.h>
|
||||
#include <X11/keysym.h>
|
||||
#include "spatial.h"
|
||||
|
||||
@@ -18,8 +23,6 @@ XDrawLine(dpy, win, gcwhite, x1, y1, x2, y2)
|
||||
extern GC gcblack, gcwhite, gcinv, gccopy, gcline,
|
||||
gcfield, gccubes[];
|
||||
|
||||
-extern void intro_redraw(), redo_board_globals();
|
||||
-
|
||||
void initintro()
|
||||
{
|
||||
intro_redraw();
|
||||
@@ -118,7 +121,7 @@ void intro_redraw()
|
||||
xputs(50, 220, "(C) Copyright 1991-3 Andrew Plotkin");
|
||||
xputs(50, 240, " (ap1i@andrew.cmu.edu)");
|
||||
if (score!=(-1)) {
|
||||
- sprintf(buf, "Your score: %d", score);
|
||||
+ snprintf(buf, sizeof buf, "Your score: %ld", score);
|
||||
xputs(50, 260, buf);
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue