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
--- /dev/null
+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()