summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/systrace/filter.c4
-rw-r--r--bin/systrace/policy.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/bin/systrace/filter.c b/bin/systrace/filter.c
index ad5d71085f2..0817679043b 100644
--- a/bin/systrace/filter.c
+++ b/bin/systrace/filter.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: filter.c,v 1.10 2002/06/09 05:47:27 todd Exp $ */
+/* $OpenBSD: filter.c,v 1.11 2002/06/11 05:30:28 provos Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -324,7 +324,7 @@ filter_ask(struct intercept_tlq *tls, struct filterq *fls,
/* Automatically allow */
if (tls != NULL) {
struct intercept_translate *tl;
- char compose[MAXPATHLEN], *l;
+ char compose[2*MAXPATHLEN], *l;
char *lst = NULL;
int set = 0;
diff --git a/bin/systrace/policy.c b/bin/systrace/policy.c
index 89e55352847..75db342dbd7 100644
--- a/bin/systrace/policy.c
+++ b/bin/systrace/policy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: policy.c,v 1.8 2002/06/09 04:18:56 itojun Exp $ */
+/* $OpenBSD: policy.c,v 1.9 2002/06/11 05:30:28 provos Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -258,7 +258,7 @@ systrace_modifypolicy(int fd, int policynr, char *name, short action)
char *
systrace_policyfilename(char *dirname, char *name)
{
- static char file[MAXPATHLEN];
+ static char file[2*MAXPATHLEN];
char *p;
int i, plen;
@@ -483,8 +483,8 @@ systrace_writepolicy(struct policy *policy)
FILE *fp;
int fd;
char *p;
- char tmpname[MAXPATHLEN];
- char finalname[MAXPATHLEN];
+ char tmpname[2*MAXPATHLEN];
+ char finalname[2*MAXPATHLEN];
struct filter *filter;
if ((p = systrace_policyfilename(policydir, policy->name)) == NULL)