diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2013-09-16 21:34:10 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2013-09-16 21:34:10 +0000 |
commit | 49acdb8f16c91a7e5bfe20f80271e6d74c9a890a (patch) | |
tree | ea6c9d99ed87f0b6c17b73607b4e1dd66d6e5079 /games-mud/tf/files | |
parent | Drop unnecessary whitespace in deps. (diff) | |
download | gentoo-2-49acdb8f16c91a7e5bfe20f80271e6d74c9a890a.tar.gz gentoo-2-49acdb8f16c91a7e5bfe20f80271e6d74c9a890a.tar.bz2 gentoo-2-49acdb8f16c91a7e5bfe20f80271e6d74c9a890a.zip |
add upstream patch for corrected stdarg usage (bug #485132)
(Portage version: 2.2.1/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'games-mud/tf/files')
-rw-r--r-- | games-mud/tf/files/tf-50_beta8-stdarg.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/games-mud/tf/files/tf-50_beta8-stdarg.patch b/games-mud/tf/files/tf-50_beta8-stdarg.patch new file mode 100644 index 000000000000..6d568f4708a8 --- /dev/null +++ b/games-mud/tf/files/tf-50_beta8-stdarg.patch @@ -0,0 +1,30 @@ +diff -U5 -r tf-50b8.orig/src/tfio.c tf-50b8/src/tfio.c +--- src/tfio.c.orig 2007-01-13 18:12:39.000000000 -0500 ++++ src/tfio.c 2007-02-02 16:50:12.000000000 -0500 +@@ -495,10 +495,11 @@ + const char *q, *sval; + char *specptr, quote; + const conString *Sval; + int len, min, max, leftjust, stars; + attr_t attrs = buf->attrs; ++ va_list aq; + + if (!(flags & SP_APPEND) && buf->data) Stringtrunc(buf, 0); + while (*fmt) { + if (*fmt != '%' || *++fmt == '%') { + for (q = fmt + 1; *q && *q != '%'; q++); +@@ -520,11 +521,13 @@ + switch (*fmt) { + case 'd': case 'i': + case 'x': case 'X': case 'u': case 'o': + case 'f': case 'e': case 'E': case 'g': case 'G': + case 'p': +- vsprintf(tempbuf, spec, ap); ++ va_copy(aq, ap); ++ vsprintf(tempbuf, spec, aq); ++ va_end(aq); + Stringcat(buf, tempbuf); + /* eat the arguments used by vsprintf() */ + while (stars--) (void)va_arg(ap, int); + switch (*fmt) { + case 'd': case 'i': |