diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2002-06-19 16:31:08 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2002-06-19 16:31:08 +0000 |
commit | cdc8964da85e9a9d9c8b34f7c366bfe847894557 (patch) | |
tree | c790e95edd6c9dcae33c094a96b629ee38db4e00 /bin/systrace/policy.c | |
parent | ab033eb8e1889b33cfada7ff76c37fd429063741 (diff) |
more careful buffer handling; pointed out by deraadt@
Diffstat (limited to 'bin/systrace/policy.c')
-rw-r--r-- | bin/systrace/policy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/systrace/policy.c b/bin/systrace/policy.c index 75db342dbd7..348a0c5a41d 100644 --- a/bin/systrace/policy.c +++ b/bin/systrace/policy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: policy.c,v 1.9 2002/06/11 05:30:28 provos Exp $ */ +/* $OpenBSD: policy.c,v 1.10 2002/06/19 16:31:07 provos Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -31,9 +31,9 @@ #include <sys/types.h> #include <sys/param.h> - #include <sys/stat.h> #include <sys/tree.h> +#include <limits.h> #include <stdlib.h> #include <string.h> #include <unistd.h> @@ -365,7 +365,7 @@ systrace_readpolicy(char *filename) { FILE *fp; struct policy *policy; - char line[1024], *p; + char line[_POSIX2_LINE_MAX], *p; int linenumber = 0; char *name, *emulation, *rule; struct filter *filter, *parsed; |