diff options
author | 2003-04-14 02:13:30 +0000 | |
---|---|---|
committer | 2003-04-14 02:13:30 +0000 | |
commit | b2cb24de40b7bb6da8ac2fc65fcd5ef4d822cc56 (patch) | |
tree | b220426477f826e84c4ec54dd7904525a09a3fbc | |
parent | sync (diff) | |
download | wireguard-openbsd-b2cb24de40b7bb6da8ac2fc65fcd5ef4d822cc56.tar.xz wireguard-openbsd-b2cb24de40b7bb6da8ac2fc65fcd5ef4d822cc56.zip |
room for NUL; tdeval
-rw-r--r-- | bin/systrace/systrace-translate.c | 4 |
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) |