diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2002-06-11 05:30:29 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2002-06-11 05:30:29 +0000 |
commit | 5dee8af3cc3e0ec04a969d01a8a01801f94e1c12 (patch) | |
tree | 730baed4f371bf9e4c8114a2ab616fbcc003d9df /bin/systrace/policy.c | |
parent | c2384b027be35ad0d56abd0a775e8706ba286ec7 (diff) |
change a few buffers to 2*MAXPATHLEN; pob deraadt@
Diffstat (limited to 'bin/systrace/policy.c')
-rw-r--r-- | bin/systrace/policy.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) |