From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- .../xbomber/files/xbomber-101-va_list.patch | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 games-action/xbomber/files/xbomber-101-va_list.patch (limited to 'games-action/xbomber/files/xbomber-101-va_list.patch') diff --git a/games-action/xbomber/files/xbomber-101-va_list.patch b/games-action/xbomber/files/xbomber-101-va_list.patch new file mode 100644 index 000000000000..5a1691a65ad8 --- /dev/null +++ b/games-action/xbomber/files/xbomber-101-va_list.patch @@ -0,0 +1,48 @@ +--- a/bomber.c 2005-11-06 16:50:04.000000000 +0100 ++++ b/bomber.c 2005-11-06 16:47:35.000000000 +0100 +@@ -1,5 +1,6 @@ + #include + #include ++#include + #include + #include + #include +@@ -626,8 +627,11 @@ + void scrprintf(char *str,...) + { + char output[256],*p,*p2; ++va_list ap; + +- vsprintf(output,str,&str+1); ++ va_start(ap, str); ++ vsprintf(output,str,ap); ++ va_end(ap); + p=output; + for(;;) + { +@@ -653,8 +657,11 @@ + void bigscrprintf(char *str,...) + { + char output[256],*p,*p2; ++va_list ap; + +- vsprintf(output,str,&str+1); ++ va_start(ap, str); ++ vsprintf(output,str,ap); ++ va_end(ap); + p=output; + for(;;) + { +@@ -1873,8 +1880,11 @@ + additem(char *item,...) + { + char output[256]; ++va_list ap; + +- vsprintf(output,item,&item+1); ++ va_start(ap, item); ++ vsprintf(output,item,ap); ++ va_end(ap); + if(menunum<0) + menutitle=menuput; + else -- cgit v1.2.3