From f1cb09229a0fe90597020bfbe2344499856f8826 Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 8 Jun 2015 13:38:12 +0000 Subject: Avoid using an uninitialised variable by reading from, not writing to the screen. --- chat/phone/Makefile | 4 ++-- chat/phone/distinfo | 3 ++- chat/phone/patches/patch-client_misc.c | 14 ++++++++++++++ 3 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 chat/phone/patches/patch-client_misc.c (limited to 'chat') 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); -- cgit v1.2.3