From 9d91c29d4538ba74b0a563a460c05fb27a0a8159 Mon Sep 17 00:00:00 2001 From: tg Date: Tue, 21 Sep 2004 11:33:41 +0000 Subject: [PATCH] use PATH_MAX instead of hardcoding --- history.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/history.c b/history.c index 4fe4c14..3e32c81 100644 --- a/history.c +++ b/history.c @@ -1,4 +1,4 @@ -/** $MirBSD: history.c,v 1.9 2004/08/27 14:08:35 tg Stab $ */ +/** $MirBSD: history.c,v 1.10 2004/09/21 11:33:41 tg Exp $ */ /* $OpenBSD: history.c,v 1.24 2004/08/03 12:44:59 danh Exp $ */ /* @@ -940,7 +940,7 @@ hist_shrink(oldbase, oldbytes) int oldbytes; { int fd; - char nfile[4096]; + char nfile[PATH_MAX]; struct stat statb; unsigned char *nbase = oldbase; int nbytes = oldbytes;