Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/systrace "output" is a pointer of size "outlen", so use ...



details:   https://anonhg.NetBSD.org/src/rev/59de8d1810c5
branches:  trunk
changeset: 537902:59de8d1810c5
user:      itojun <itojun%NetBSD.org@localhost>
date:      Tue Oct 08 02:47:59 2002 +0000

description:
"output" is a pointer of size "outlen", so use outlen instead of
sizeof(output)

From: "Vincent Labrecque" <vincent%psyfreaks.ca@localhost>

diffstat:

 bin/systrace/systrace.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 08b55eb1dd73 -r 59de8d1810c5 bin/systrace/systrace.c
--- a/bin/systrace/systrace.c   Tue Oct 08 00:34:08 2002 +0000
+++ b/bin/systrace/systrace.c   Tue Oct 08 02:47:59 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: systrace.c,v 1.8 2002/09/23 04:35:42 itojun Exp $      */
+/*     $NetBSD: systrace.c,v 1.9 2002/10/08 02:47:59 itojun Exp $      */
 /*     $OpenBSD: systrace.c,v 1.32 2002/08/05 23:27:53 provos Exp $    */
 /*
  * Copyright 2002 Niels Provos <provos%citi.umich.edu@localhost>
@@ -103,7 +103,7 @@
 
                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,



Home | Main Index | Thread Index | Old Index