summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordm <dm@cvs.openbsd.org>1997-02-12 19:48:25 +0000
committerdm <dm@cvs.openbsd.org>1997-02-12 19:48:25 +0000
commit7244113d469f647f13d6c60b5eb79d2ce0f691e5 (patch)
treef77688a8ee1be5297e966514062a43574fa5d02b
parent2351d3fe016494c6d7d47a99c36cd6fdde8ebeb9 (diff)
Don't print garbage on EOF.
-rw-r--r--usr.bin/rdist/docmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rdist/docmd.c b/usr.bin/rdist/docmd.c
index 95cbf603b79..851692f1547 100644
--- a/usr.bin/rdist/docmd.c
+++ b/usr.bin/rdist/docmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: docmd.c,v 1.4 1996/06/26 05:38:12 deraadt Exp $ */
+/* $OpenBSD: docmd.c,v 1.5 1997/02/12 19:48:24 dm Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
@@ -35,7 +35,7 @@
#ifndef lint
static char RCSid[] =
-"$OpenBSD: docmd.c,v 1.4 1996/06/26 05:38:12 deraadt Exp $";
+"$OpenBSD: docmd.c,v 1.5 1997/02/12 19:48:24 dm Exp $";
static char sccsid[] = "@(#)docmd.c 5.1 (Berkeley) 6/6/85";
@@ -310,7 +310,7 @@ static int makeconn(rhost)
extern long min_freefiles, min_freespace;
extern char *remotemsglist;
char tuser[BUFSIZ], buf[BUFSIZ];
- u_char respbuff[BUFSIZ];
+ u_char respbuff[BUFSIZ] = "";
int n;
debugmsg(DM_CALL, "makeconn(%s)", rhost);