From 37896ec05a1fdb6f8e0151ac2ce074ff994cc801 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 19 Nov 2016 11:44:03 -0500 Subject: driver: slbt_output_raw_vector(): pass the correct file descriptor to isatty(). --- src/driver/slbt_driver_ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index 562ab4d..40be65f 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -84,7 +84,7 @@ static void slbt_output_raw_vector(char ** argv, char ** envp) (void)envp; - if ((fcolor = isatty(STDOUT_FILENO))) + if ((fcolor = isatty(STDERR_FILENO))) fprintf(stderr,"%s%s",aclr_bold,aclr_red); fprintf(stderr,"\n\n\n%s",argv[0]); -- cgit v1.2.3