diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-04 21:47:42 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-04 21:47:42 +0000 |
commit | 0e1548bc6a75666f789b38ea4bbd5fb3ba1a830d (patch) | |
tree | c4712d59aa242d7f769ba1abf3f62045669b1fb5 | |
parent | 6a05f31f0b78a2f8c3ff5689bb6951b00f53f03e (diff) |
Qick fix for an overflow in C-X C-B.
This function needs a lot of work.
-rw-r--r-- | usr.bin/mg/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/buffer.c b/usr.bin/mg/buffer.c index 4c6a72283b1..9d4324dbdf6 100644 --- a/usr.bin/mg/buffer.c +++ b/usr.bin/mg/buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: buffer.c,v 1.5 2001/01/29 01:58:06 niklas Exp $ */ +/* $OpenBSD: buffer.c,v 1.6 2001/05/04 21:47:41 art Exp $ */ /* * Buffer handling. @@ -214,7 +214,7 @@ makelist() RSIZE nbytes; BUFFER *blp; char b[6 + 1]; - char line[128]; + char line[NBUFN+128]; if ((blp = bfind("*Buffer List*", TRUE)) == NULL) return NULL; |