summaryrefslogtreecommitdiff
path: root/usr.bin/make/buf.c
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1995-01-23 21:03:17 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1995-01-23 21:03:17 +0000
commit9f574f9a908a903efc4a514a61bde333d960573c (patch)
tree4fe60a8bd60f90f8461d826b8a6c0cd471c798d3 /usr.bin/make/buf.c
parent8d81c1222778f5f4e7f1640dda9ac9c1fe47fcdd (diff)
Notes
Diffstat (limited to 'usr.bin/make/buf.c')
-rw-r--r--usr.bin/make/buf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/make/buf.c b/usr.bin/make/buf.c
index 3d9e9d63d246..e902f130a3b3 100644
--- a/usr.bin/make/buf.c
+++ b/usr.bin/make/buf.c
@@ -1,6 +1,6 @@
/*
- * Copyright (c) 1988, 1989, 1990, 1993
- * The Regents of the University of California. All rights reserved.
+ * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
+ * Copyright (c) 1988, 1989 by Adam de Boor
* Copyright (c) 1989 by Berkeley Softworks
* All rights reserved.
*
@@ -94,9 +94,9 @@ Buf_OvAddByte (bp, byte)
register Buffer bp;
int byte;
{
-
+ int nbytes = 1;
bp->left = 0;
- BufExpand (bp, 1);
+ BufExpand (bp, nbytes);
*bp->inPtr++ = byte;
bp->left--;