Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/catman Don't repeat what we just printed.
details: https://anonhg.NetBSD.org/src/rev/f49a015f1e5b
branches: trunk
changeset: 772219:f49a015f1e5b
user: christos <christos%NetBSD.org@localhost>
date: Sat Dec 24 23:38:43 2011 +0000
description:
Don't repeat what we just printed.
diffstat:
usr.sbin/catman/catman.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (23 lines):
diff -r 3fcc1733b7aa -r f49a015f1e5b usr.sbin/catman/catman.c
--- a/usr.sbin/catman/catman.c Sat Dec 24 23:29:32 2011 +0000
+++ b/usr.sbin/catman/catman.c Sat Dec 24 23:38:43 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: catman.c,v 1.31 2011/12/24 23:29:32 christos Exp $ */
+/* $NetBSD: catman.c,v 1.32 2011/12/24 23:38:43 christos Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -569,11 +569,10 @@
if (*crunchcmd != '\0') {
snprintf(crunchbuf, sizeof(crunchbuf), crunchcmd, catpage);
- snprintf(sysbuf + len, sizeof(sysbuf) - len, "%s | %s", sysbuf,
+ snprintf(sysbuf + len, sizeof(sysbuf) - len, " | %s",
crunchbuf);
} else {
- snprintf(sysbuf + len, sizeof(sysbuf) - len, "%s > %s", sysbuf,
- catpage);
+ snprintf(sysbuf + len, sizeof(sysbuf) - len, " > %s", catpage);
}
if (f_noprint == 0)
Home |
Main Index |
Thread Index |
Old Index