diff options
Diffstat (limited to 'games-action/xbomber/files/xbomber-101-va_list.patch')
-rw-r--r-- | games-action/xbomber/files/xbomber-101-va_list.patch | 48 |
1 files changed, 48 insertions, 0 deletions
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..cd15b84b00e3 --- /dev/null +++ b/games-action/xbomber/files/xbomber-101-va_list.patch @@ -0,0 +1,48 @@ +--- bomber.c.orig 2005-11-06 16:50:04.000000000 +0100 ++++ bomber.c 2005-11-06 16:47:35.000000000 +0100 +@@ -1,5 +1,6 @@ + #include <stdio.h> + #include <stdlib.h> ++#include <stdarg.h> + #include <unistd.h> + #include <string.h> + #include <sys/uio.h> +@@ -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 |