diff options
author | Mark Lumsden <lum@cvs.openbsd.org> | 2021-04-21 14:45:29 +0000 |
---|---|---|
committer | Mark Lumsden <lum@cvs.openbsd.org> | 2021-04-21 14:45:29 +0000 |
commit | eae14e1a60b2f61bde9c0220fdcc7d1bd4bb9a75 (patch) | |
tree | 7eafa04f38c276ac89d4a71e08f5ea5eaf5a560c /usr.bin/mg | |
parent | f52a0f884745b10df849d29ae9fe77bb9aa6c412 (diff) |
Use the plenteous BUFSIZE found in mg in lieu of 128.
Diffstat (limited to 'usr.bin/mg')
-rw-r--r-- | usr.bin/mg/autoexec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/autoexec.c b/usr.bin/mg/autoexec.c index d4447e439c1..1faf9e7ae01 100644 --- a/usr.bin/mg/autoexec.c +++ b/usr.bin/mg/autoexec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoexec.c,v 1.17 2015/09/26 21:51:58 jasper Exp $ */ +/* $OpenBSD: autoexec.c,v 1.18 2021/04/21 14:45:28 lum Exp $ */ /* this file is in the public domain */ /* Author: Vincent Labrecque <vincent@openbsd.org> April 2002 */ @@ -97,7 +97,7 @@ add_autoexec(const char *pattern, const char *func) int auto_execute(int f, int n) { - char patbuf[128], funcbuf[128], *patp, *funcp; + char patbuf[BUFSIZE], funcbuf[BUFSIZE], *patp, *funcp; int s; if ((patp = eread("Filename pattern: ", patbuf, sizeof(patbuf), |