summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-19 11:44:03 -0500
committermidipix <writeonce@midipix.org>2016-11-19 11:44:03 -0500
commit37896ec05a1fdb6f8e0151ac2ce074ff994cc801 (patch)
treee3be58810cc64b437f8c51894c40def5dc6c810b
parenta647761da7d67980b53aa0cafe48bdc2af2fd1f9 (diff)
downloadslibtool-37896ec05a1fdb6f8e0151ac2ce074ff994cc801.tar.bz2
slibtool-37896ec05a1fdb6f8e0151ac2ce074ff994cc801.tar.xz
driver: slbt_output_raw_vector(): pass the correct file descriptor to isatty().
-rw-r--r--src/driver/slbt_driver_ctx.c2
1 files changed, 1 insertions, 1 deletions
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]);