From 331fd91a8d9fb314002a1316ceea9149173798d3 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Wed, 26 May 2010 14:30:46 +0000 Subject: [PATCH] gtmess: Fixed va_list error. --- gtmess/.md5sum | 1 + gtmess/Pkgfile | 7 ++++--- gtmess/gtmess-0.96beta3_valist.patch | 21 +++++++++++++++++++++ 3 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 gtmess/gtmess-0.96beta3_valist.patch diff --git a/gtmess/.md5sum b/gtmess/.md5sum index db3d943..70735ed 100644 --- a/gtmess/.md5sum +++ b/gtmess/.md5sum @@ -1 +1,2 @@ d2d2a2070d214d78ee7cfecdefc6b16f gtmess-0.96beta3.tar.gz +3e70f49787653849c2e47b196bf31710 gtmess-0.96beta3_valist.patch diff --git a/gtmess/Pkgfile b/gtmess/Pkgfile index 82e2a47..1978b2b 100644 --- a/gtmess/Pkgfile +++ b/gtmess/Pkgfile @@ -6,14 +6,15 @@ name=gtmess version=0.96beta3 -release=1 -source=(http://dl.sourceforge.net/$name/$name-$version.tar.gz) +release=2 +source=(http://dl.sourceforge.net/$name/$name-$version.tar.gz \ + gtmess-0.96beta3_valist.patch) build() { cd $name-$version + patch -p1 -i $SRC/gtmess-0.96beta3_valist.patch ./configure --build=$CHOST \ --host=$CTARGET \ - --disable-nls \ --prefix=/usr \ --mandir=/usr/man make diff --git a/gtmess/gtmess-0.96beta3_valist.patch b/gtmess/gtmess-0.96beta3_valist.patch new file mode 100644 index 0000000..37ba958 --- /dev/null +++ b/gtmess/gtmess-0.96beta3_valist.patch @@ -0,0 +1,21 @@ +diff -pruN gtmess-0.96beta3orig//src/client/screen.c gtmess-0.96beta3//src/client/screen.c +--- gtmess-0.96beta3orig//src/client/screen.c 2010-05-26 13:46:47.000000000 +0000 ++++ gtmess-0.96beta3//src/client/screen.c 2010-05-26 14:02:51.000000000 +0000 +@@ -255,7 +255,7 @@ void msg(int attr, const char *fmt, ...) + va_start(ap, fmt); + r = vmsg(attr, SML, fmt, ap); + va_end(ap); +- if (r) vmsg(C_ERR, SML, "msg(): output truncated\n", NULL); ++ if (r) vmsg(C_ERR, SML, "msg(): output truncated\n", ap); + } + + void msgn(int attr, int size, const char *fmt, ...) +@@ -266,7 +266,7 @@ void msgn(int attr, int size, const char + va_start(ap, fmt); + r = vmsg(attr, size, fmt, ap); + va_end(ap); +- if (r) vmsg(C_ERR, SML, "msgn(): output truncated\n", NULL); ++ if (r) vmsg(C_ERR, SML, "msgn(): output truncated\n", ap); + } + + int screen_shut() -- 2.26.2