diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2015-10-09 21:24:06 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2015-10-09 21:24:06 +0000 |
commit | c43fd83a883f62e9d6f8dc437c5051dcfe63f54d (patch) | |
tree | 5164ab3f915b94a80a995e17b2d48bf3f7d9671b /bin/ed/main.c | |
parent | f2484860686bfd7eaa77db4c30874d3d7137d59d (diff) |
The variable errmsg can be static in main.c if code in re.c uses an own
buffer to construct error messages.
with input by and ok millert@
Diffstat (limited to 'bin/ed/main.c')
-rw-r--r-- | bin/ed/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ed/main.c b/bin/ed/main.c index 14e60082b91..2489a63e1c9 100644 --- a/bin/ed/main.c +++ b/bin/ed/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.52 2015/10/09 20:27:28 tobias Exp $ */ +/* $OpenBSD: main.c,v 1.53 2015/10/09 21:24:05 tobias Exp $ */ /* $NetBSD: main.c,v 1.3 1995/03/21 09:04:44 cgd Exp $ */ /* main.c: This file contains the main control and user-interface routines @@ -72,6 +72,7 @@ static line_t *dup_line_node(line_t *); sigjmp_buf env; /* static buffers */ +static char errmsg[PATH_MAX + 40]; /* error message buffer */ static char *shcmd; /* shell command buffer */ static int shcmdsz; /* shell command buffer size */ static int shcmdi; /* shell command buffer index */ |