diff options
author | dm <dm@cvs.openbsd.org> | 1997-02-12 19:48:25 +0000 |
---|---|---|
committer | dm <dm@cvs.openbsd.org> | 1997-02-12 19:48:25 +0000 |
commit | 7244113d469f647f13d6c60b5eb79d2ce0f691e5 (patch) | |
tree | f77688a8ee1be5297e966514062a43574fa5d02b /usr.bin/rdist/docmd.c | |
parent | 2351d3fe016494c6d7d47a99c36cd6fdde8ebeb9 (diff) |
Don't print garbage on EOF.
Diffstat (limited to 'usr.bin/rdist/docmd.c')
-rw-r--r-- | usr.bin/rdist/docmd.c | 6 |
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); |