Patching gtmess; it did not build on arm.

svn path=/nixpkgs/trunk/; revision=30230
This commit is contained in:
Lluís Batlle i Rossell 2011-11-04 18:10:44 +00:00
parent 0812835108
commit c95d373b68
2 changed files with 24 additions and 0 deletions

View file

@ -10,6 +10,8 @@ stdenv.mkDerivation {
buildInputs = [ ncurses openssl tcl tk];
patches = [ ./va_list.patch ];
meta = {
description = "Console MSN Messenger client for Linux and other unix systems";
homepage = http://gtmess.sourceforge.net/;

View file

@ -0,0 +1,22 @@
diff --git a/src/client/screen.c b/src/client/screen.c
index e8fa75f..d3842ac 100644
--- a/src/client/screen.c
+++ b/src/client/screen.c
@@ -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) msgn(C_ERR, SML, "msg(): output truncated\n");
}
void msgn(int attr, int size, const char *fmt, ...)
@@ -266,7 +266,7 @@ void msgn(int attr, int size, const char *fmt, ...)
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) msgn(C_ERR, SML, "msgn(): output truncated\n");
}
int screen_shut()