pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/chat/phone Avoid using an uninitialised variable by re...
details: https://anonhg.NetBSD.org/pkgsrc/rev/977d9510fe82
branches: trunk
changeset: 652802:977d9510fe82
user: joerg <joerg%pkgsrc.org@localhost>
date: Mon Jun 08 13:38:12 2015 +0000
description:
Avoid using an uninitialised variable by reading from, not writing to
the screen.
diffstat:
chat/phone/Makefile | 4 ++--
chat/phone/distinfo | 3 ++-
chat/phone/patches/patch-client_misc.c | 14 ++++++++++++++
3 files changed, 18 insertions(+), 3 deletions(-)
diffs (47 lines):
diff -r 63b5c955e09b -r 977d9510fe82 chat/phone/Makefile
--- a/chat/phone/Makefile Mon Jun 08 12:52:07 2015 +0000
+++ b/chat/phone/Makefile Mon Jun 08 13:38:12 2015 +0000
@@ -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 -r 63b5c955e09b -r 977d9510fe82 chat/phone/distinfo
--- a/chat/phone/distinfo Mon Jun 08 12:52:07 2015 +0000
+++ b/chat/phone/distinfo Mon Jun 08 13:38:12 2015 +0000
@@ -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 -r 63b5c955e09b -r 977d9510fe82 chat/phone/patches/patch-client_misc.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/phone/patches/patch-client_misc.c Mon Jun 08 13:38:12 2015 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index