summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-10-08 03:13:24 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-10-08 03:13:24 +0000
commitf9c6368d34a09253425644794455e6edc32eafd7 (patch)
treedc3f3fa23009937bc6dc85c7a6ab21e2d4d7fa23
parent9cd04a69b2da603d1bd465342623ab20e2ddc2b9 (diff)
"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.c4
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,