pkgsrc/misc/cw/patches/patch-src_cw.c
youri 23233497ee Import cw-1.0.16 as misc/cw.
Cw is a non-intrusive real-time ANSI color wrapper for common unix-based
command. It is designed to simulate the environment of the commands being
executed, so that if a person types 'du', 'df', 'ping', etc.  in their
shell it will automatically color the output in real-time according to
a definition file containing the color format desired.  cw has support
for wildcard match coloring, tokenized coloring, headers/footers, case
scenario coloring, command line dependent definition coloring, and
includes over 50 pre-made definition files.
2015-06-04 20:27:53 +00:00

15 lines
415 B
C

$NetBSD: patch-src_cw.c,v 1.1 2015/06/04 20:27:53 youri Exp $
fprintf requires the format.
--- src/cw.c.orig 2010-06-20 04:39:51.000000000 +0000
+++ src/cw.c
@@ -643,7 +643,7 @@ void sighandler(signed int sig){
else if(sig==SIGUSR1)ext=1;
else if(sig==SIGALRM)ext=2;
else if(sig==SIGPIPE||sig==SIGINT){
- fprintf(stderr,pal2[16]);
+ fprintf(stderr,"%s\n",pal2[16]);
fflush(stderr);
cwexit(0,0);
}