diff options
author | 2002-10-08 03:13:23 +0000 | |
---|---|---|
committer | 2002-10-08 03:13:23 +0000 | |
commit | facc358c94adbd75c6dcd27ef1a7b237885327f4 (patch) | |
tree | cd583049eca1967940c66b364282289fe09015e8 | |
parent | assume that inserting a template implies permit for the current (diff) | |
download | wireguard-openbsd-facc358c94adbd75c6dcd27ef1a7b237885327f4.tar.xz wireguard-openbsd-facc358c94adbd75c6dcd27ef1a7b237885327f4.zip |
"output" is a pointer of size "outlen", so use outlen instead of
sizeof(output)
From "Vincent Labrecque" <vincent@psyfreaks.ca>
-rw-r--r-- | bin/systrace/systrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/systrace/systrace.c b/bin/systrace/systrace.c index b94c8c0c5d0..7f8002abcca 100644 --- a/bin/systrace/systrace.c +++ b/bin/systrace/systrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: systrace.c,v 1.35 2002/09/23 04:41:02 itojun Exp $ */ +/* $OpenBSD: systrace.c,v 1.36 2002/10/08 03:13:23 itojun Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -102,7 +102,7 @@ make_output(char *output, size_t outlen, const char *binname, snprintf(p, size, ", %s: %s", tl->name, line); p = output + strlen(output); - size = sizeof(output) - strlen(output); + size = outlen - strlen(output); if (repl != NULL && tl->trans_size) intercept_replace_add(repl, tl->off, |