Module Name:    src
Committed By:   christos
Date:           Sat Dec 24 23:38:43 UTC 2011

Modified Files:
        src/usr.sbin/catman: catman.c

Log Message:
Don't repeat what we just printed.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/usr.sbin/catman/catman.c

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

Modified files:

Index: src/usr.sbin/catman/catman.c
diff -u src/usr.sbin/catman/catman.c:1.31 src/usr.sbin/catman/catman.c:1.32
--- src/usr.sbin/catman/catman.c:1.31	Sat Dec 24 18:29:32 2011
+++ src/usr.sbin/catman/catman.c	Sat Dec 24 18:38:43 2011
@@ -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 @@ makecat(const char *manpage, const char 
 
 	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)

Reply via email to