From 0e1548bc6a75666f789b38ea4bbd5fb3ba1a830d Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Fri, 4 May 2001 21:47:42 +0000 Subject: Qick fix for an overflow in C-X C-B. This function needs a lot of work. --- usr.bin/mg/buffer.c | 4 ++-- 1 file 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; -- cgit v1.2.3