summaryrefslogtreecommitdiff
path: root/bin/systrace
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-04-14 02:13:31 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-04-14 02:13:31 +0000
commit79517d06a1c62660b688e7818a433ab611b76f3a (patch)
treefa3df21cf06908c4725d1ae26bb77f5d28d7c51c /bin/systrace
parent9ed83f38e0b46dd15682fcceb0db35c34f1ad032 (diff)
room for NUL; tdeval
Diffstat (limited to 'bin/systrace')
-rw-r--r--bin/systrace/systrace-translate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/systrace/systrace-translate.c b/bin/systrace/systrace-translate.c
index 45c915cea00..959a459aece 100644
--- a/bin/systrace/systrace-translate.c
+++ b/bin/systrace/systrace-translate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: systrace-translate.c,v 1.15 2003/04/06 23:57:51 deraadt Exp $ */
+/* $OpenBSD: systrace-translate.c,v 1.16 2003/04/14 02:13:30 deraadt Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -50,7 +50,7 @@
#include "systrace.h"
#define FL(w,c) do { \
- if (flags & (w) && p < str + sizeof str) \
+ if (flags & (w) && p < str + sizeof str - 1) \
*p++ = (c); \
} while (0)