summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1998-08-29 01:46:54 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1998-08-29 01:46:54 +0000
commit7aec1acf104dac62a8e0e10fb3b99d191e4fc3e8 (patch)
treecd7311ada1e633a9d5279f696be2a50fd36e61bf /sys/arch
parentb21a2e81b093de196a36ab5b8a92a36c603c24de (diff)
postpone bzero buffer on padding
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/hppa/stand/mkboot/mkboot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/hppa/stand/mkboot/mkboot.c b/sys/arch/hppa/stand/mkboot/mkboot.c
index 26c37eb2e90..65cf0181762 100644
--- a/sys/arch/hppa/stand/mkboot/mkboot.c
+++ b/sys/arch/hppa/stand/mkboot/mkboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkboot.c,v 1.3 1998/07/27 15:41:08 mickey Exp $ */
+/* $OpenBSD: mkboot.c,v 1.4 1998/08/29 01:46:53 mickey Exp $ */
/*
* Copyright (c) 1990, 1993
@@ -43,7 +43,7 @@ static char copyright[] =
#endif /* not lint */
#ifndef lint
-static char rcsid[] = "$OpenBSD: mkboot.c,v 1.3 1998/07/27 15:41:08 mickey Exp $";
+static char rcsid[] = "$OpenBSD: mkboot.c,v 1.4 1998/08/29 01:46:53 mickey Exp $";
#endif /* not lint */
#endif
@@ -281,7 +281,6 @@ putfile(from_file, to)
if (verbose)
warnx("wrote %d bytes of file \'%s\'", total, from_file);
- bzero(buf, sizeof(buf));
total += sizeof(load);
/* insert the header */
lseek(to, -total, SEEK_CUR);
@@ -289,6 +288,7 @@ putfile(from_file, to)
err(1, to_file);
lseek(to, total - sizeof(load), SEEK_CUR);
+ bzero(buf, sizeof(buf));
/* pad to int */
n = sizeof(int) - total % sizeof(int);
if (total % sizeof(int)) {