From 5dee8af3cc3e0ec04a969d01a8a01801f94e1c12 Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Tue, 11 Jun 2002 05:30:29 +0000 Subject: change a few buffers to 2*MAXPATHLEN; pob deraadt@ --- bin/systrace/filter.c | 4 ++-- bin/systrace/policy.c | 8 ++++---- 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 * 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 * 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) -- cgit v1.2.3