From c604863e09d985ff948c64868b2462bb699e7c7e Mon Sep 17 00:00:00 2001 From: wiz Date: Thu, 24 Jan 2002 18:37:56 +0000 Subject: Correct vsprintf usage. Might fix alpha bulk build. --- games/ketm/distinfo | 3 ++- games/ketm/patches/patch-ab | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 games/ketm/patches/patch-ab (limited to 'games') diff --git a/games/ketm/distinfo b/games/ketm/distinfo index 8058c5408d4..7cd21589e48 100644 --- a/games/ketm/distinfo +++ b/games/ketm/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.1.1.1 2001/07/26 13:46:39 zuntum Exp $ +$NetBSD: distinfo,v 1.2 2002/01/24 18:37:56 wiz Exp $ SHA1 (ketm-0.0.4.tar.bz2) = b49f2a255b60ad76a36c95ddba71a0d39ffbcac4 Size (ketm-0.0.4.tar.bz2) = 1250927 bytes SHA1 (patch-aa) = 2f0155a45f8e9f1e0042d05633f5158a16f43b02 +SHA1 (patch-ab) = 3f3137b140d4ed32e454ede9454d25e9fadeaa37 diff --git a/games/ketm/patches/patch-ab b/games/ketm/patches/patch-ab new file mode 100644 index 00000000000..73a3fad555d --- /dev/null +++ b/games/ketm/patches/patch-ab @@ -0,0 +1,22 @@ +$NetBSD: patch-ab,v 1.1 2002/01/24 18:37:57 wiz Exp $ + +--- support.c.orig Thu Jan 24 19:33:56 2002 ++++ support.c +@@ -1,3 +1,4 @@ ++#include + #include "support.h" + + SDL_Surface *screen; +@@ -165,8 +166,11 @@ + void error(int errorlevel, char *msg, ...) + { + char msgbuf[512]; ++ va_list ap; + +- vsprintf(msgbuf,msg, &msg+1); ++ va_start(ap, msg); ++ vsprintf(msgbuf,msg, ap); ++ va_end(ap); + + switch(errorlevel) { + case ERR_DEBUG: if(debug) { fprintf(stdout,"DEBUG: %s\n",msgbuf); } break; -- cgit v1.2.3