Source-Changes-HG archive

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

[src/trunk]: src/bin/cat Fix oversight in last.



details:   https://anonhg.NetBSD.org/src/rev/94e6f57604b4
branches:  trunk
changeset: 526708:94e6f57604b4
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu May 09 02:13:10 2002 +0000

description:
Fix oversight in last.

diffstat:

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

diffs (27 lines):

diff -r 71aafd727410 -r 94e6f57604b4 bin/cat/cat.c
--- a/bin/cat/cat.c     Thu May 09 02:09:52 2002 +0000
+++ b/bin/cat/cat.c     Thu May 09 02:13:10 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cat.c,v 1.29 2002/05/09 02:07:38 thorpej Exp $     */
+/* $NetBSD: cat.c,v 1.30 2002/05/09 02:13:10 thorpej Exp $     */
 
 /*
  * Copyright (c) 1989, 1993
@@ -47,7 +47,7 @@
 #if 0
 static char sccsid[] = "@(#)cat.c      8.2 (Berkeley) 4/27/95";
 #else
-__RCSID("$NetBSD: cat.c,v 1.29 2002/05/09 02:07:38 thorpej Exp $");
+__RCSID("$NetBSD: cat.c,v 1.30 2002/05/09 02:13:10 thorpej Exp $");
 #endif
 #endif /* not lint */
 
@@ -282,6 +282,8 @@
                if (fstat(wfd, &sbuf) == 0) {
 #ifndef _LP64
                        bsize = MIN(sbuf.st_blksize, SSIZE_MAX);
+#else
+                       bsize = sbuf.st_blksize;
 #endif
                        bsize = MAX(bsize, BUFSIZ);
                        buf = malloc(bsize);



Home | Main Index | Thread Index | Old Index