aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-22 16:28:38 +0000
committerRoy Marples <roy@marples.name>2007-10-22 16:28:38 +0000
commit6b0c28039d051af85f009cb2cbc4c77a3d93bdb0 (patch)
tree2a744d93d8917340d15b241820af748fcf545e0c /src
parent33aa2a07450c90f15df0e13851b32a6c370fc5fa (diff)
When getting an ecolor, we should check that stdout is a tty
Diffstat (limited to 'src')
-rw-r--r--src/libeinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libeinfo.c b/src/libeinfo.c
index 57ec9e68..8c2f9523 100644
--- a/src/libeinfo.c
+++ b/src/libeinfo.c
@@ -290,7 +290,7 @@ hidden_def(ecolor)
const char *ecolor (einfo_color_t color)
{
- return (_ecolor (NULL, color));
+ return (_ecolor (stdout, color));
}
#define EINFOVN(_file, _color) \