From: dm Date: Wed, 12 Feb 1997 19:48:24 +0000 (+0000) Subject: Don't print garbage on EOF. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=fbe4a4ac79cbcb9689b67fe940e1de9c6da2d0f6;p=openbsd Don't print garbage on EOF. --- 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);