summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2015-06-08 13:38:12 +0000
committerjoerg <joerg@pkgsrc.org>2015-06-08 13:38:12 +0000
commitf1cb09229a0fe90597020bfbe2344499856f8826 (patch)
tree08b843f76447d1fba84c31e9cc07c7120df49ea0 /chat
parent3489d74b963b81b891a903779280dd6a5d7124eb (diff)
downloadpkgsrc-f1cb09229a0fe90597020bfbe2344499856f8826.tar.gz
Avoid using an uninitialised variable by reading from, not writing to
the screen.
Diffstat (limited to 'chat')
-rw-r--r--chat/phone/Makefile4
-rw-r--r--chat/phone/distinfo3
-rw-r--r--chat/phone/patches/patch-client_misc.c14
3 files changed, 18 insertions, 3 deletions
diff --git a/chat/phone/Makefile b/chat/phone/Makefile
index ed3a29240ac..2bb5a0460b1 100644
--- a/chat/phone/Makefile
+++ b/chat/phone/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2015/02/23 18:19:34 joerg Exp $
+# $NetBSD: Makefile,v 1.5 2015/06/08 13:38:12 joerg Exp $
DISTNAME= phone-2.0
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= chat
MASTER_SITES= ftp://ftp.astron.com/pub/phone/
DIST_SUBDIR= phone-2.0nb1
diff --git a/chat/phone/distinfo b/chat/phone/distinfo
index 551cc1bd382..8d42d09a62b 100644
--- a/chat/phone/distinfo
+++ b/chat/phone/distinfo
@@ -1,10 +1,11 @@
-$NetBSD: distinfo,v 1.5 2015/02/23 18:19:34 joerg Exp $
+$NetBSD: distinfo,v 1.6 2015/06/08 13:38:12 joerg Exp $
SHA1 (phone-2.0nb1/phone-2.0.tar.gz) = 0d89cc63225ee96d821dd3d8ab310ac5ea69b40a
RMD160 (phone-2.0nb1/phone-2.0.tar.gz) = c43ac0cd5de357cfb5dee1ac1546f2c2926be6ab
Size (phone-2.0nb1/phone-2.0.tar.gz) = 45663 bytes
SHA1 (patch-client_Makefile) = dc043bd15130f4d73b761aac25f2d9888212573a
SHA1 (patch-client_defs.h) = 1c88fff63c7db4d55ee35692e8882c620f9c1b7d
+SHA1 (patch-client_misc.c) = 70ce9dec31c95d63eabb17e9c618e91d7c49fd86
SHA1 (patch-conv_Makefile) = fdacf30c339aecaf2326da956196e65bf6c8fe47
SHA1 (patch-conv_convd.c) = 63c33e1571d84e9a51894003d085f136dc4ae4f2
SHA1 (patch-master_Makefile) = 07215108e5ae85c62c5a06a195e95a804776c8e3
diff --git a/chat/phone/patches/patch-client_misc.c b/chat/phone/patches/patch-client_misc.c
new file mode 100644
index 00000000000..aed65c52c73
--- /dev/null
+++ b/chat/phone/patches/patch-client_misc.c
@@ -0,0 +1,14 @@
+$NetBSD: patch-client_misc.c,v 1.1 2015/06/08 13:38:12 joerg Exp $
+
+--- client/misc.c.orig 2015-06-08 12:34:33.000000000 +0000
++++ client/misc.c
+@@ -81,8 +81,7 @@ dodump(const char *name)
+ }
+ for (y = 0; y <= maxy; y++) {
+ for (x = 0; x < maxx; x++) {
+- char c;
+- mvinsnstr(y, x, &c, 1);
++ char c = mvgetch(y, x);
+ (void) putc(c & 0177, fp);
+ }
+ (void) putc('\n', fp);