Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/dmesg Oops, fix thinko in the previous.
details: https://anonhg.NetBSD.org/src/rev/61221d464bcc
branches: trunk
changeset: 368802:61221d464bcc
user: rin <rin%NetBSD.org@localhost>
date: Sat Aug 06 09:42:33 2022 +0000
description:
Oops, fix thinko in the previous.
diffstat:
sbin/dmesg/dmesg.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 3ee4e37d0787 -r 61221d464bcc sbin/dmesg/dmesg.c
--- a/sbin/dmesg/dmesg.c Sat Aug 06 09:39:50 2022 +0000
+++ b/sbin/dmesg/dmesg.c Sat Aug 06 09:42:33 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dmesg.c,v 1.47 2022/08/06 09:39:32 rin Exp $ */
+/* $NetBSD: dmesg.c,v 1.48 2022/08/06 09:42:33 rin Exp $ */
/*-
* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)dmesg.c 8.1 (Berkeley) 6/5/93";
#else
-__RCSID("$NetBSD: dmesg.c,v 1.47 2022/08/06 09:39:32 rin Exp $");
+__RCSID("$NetBSD: dmesg.c,v 1.48 2022/08/06 09:42:33 rin Exp $");
#endif
#endif /* not lint */
@@ -280,7 +280,7 @@
#define ADDC(c) \
do { \
if (tstamp >= tbuflen - 1 && \
- reallocarr(&tbuf, tstamp * 2, 1) == 0) \
+ reallocarr(&tbuf, tbuflen * 2, 1) == 0) \
tbuflen *= 2; \
if (tstamp < tbuflen - 1) \
tbuf[tstamp++] = (c); \
Home |
Main Index |
Thread Index |
Old Index