Module Name:    src
Committed By:   rin
Date:           Sat Aug  6 09:42:33 UTC 2022

Modified Files:
        src/sbin/dmesg: dmesg.c

Log Message:
Oops, fix thinko in the previous.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/sbin/dmesg/dmesg.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/dmesg/dmesg.c
diff -u src/sbin/dmesg/dmesg.c:1.47 src/sbin/dmesg/dmesg.c:1.48
--- src/sbin/dmesg/dmesg.c:1.47	Sat Aug  6 09:39:32 2022
+++ src/sbin/dmesg/dmesg.c	Sat Aug  6 09:42:33 2022
@@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1991, 19
 #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 @@ main(int argc, char *argv[])
 #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);					\

Reply via email to