From 0da9be1378f0e7dc8fca3edc1d0d393cd55c15dc Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 3 Mar 1999 01:03:52 +0000 Subject: fix uninitialized variable; this could have caused problems when installing sparse files --- usr.bin/xinstall/xinstall.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/xinstall/xinstall.c b/usr.bin/xinstall/xinstall.c index 6efa1844cfe..1dfb3be8b0a 100644 --- a/usr.bin/xinstall/xinstall.c +++ b/usr.bin/xinstall/xinstall.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xinstall.c,v 1.19 1999/01/26 04:09:35 millert Exp $ */ +/* $OpenBSD: xinstall.c,v 1.20 1999/03/03 01:03:51 millert Exp $ */ /* $NetBSD: xinstall.c,v 1.9 1995/12/20 10:25:17 jonathan Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)xinstall.c 8.1 (Berkeley) 7/21/93"; #endif -static char rcsid[] = "$OpenBSD: xinstall.c,v 1.19 1999/01/26 04:09:35 millert Exp $"; +static char rcsid[] = "$OpenBSD: xinstall.c,v 1.20 1999/03/03 01:03:51 millert Exp $"; #endif /* not lint */ #include @@ -469,6 +469,7 @@ copy(from_fd, from_name, to_fd, to_name, size, sparse) sz = S_BLKSIZE; else sz = sb.st_blksize; + rem = sz; while ((nr = read(from_fd, buf, sizeof(buf))) > 0) { if (sparse) -- cgit v1.2.3