summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2012-04-29 07:33:42 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2012-04-29 07:33:42 +0000
commit2c37da687c2b4b66546d18f699d1bd64b8a13f05 (patch)
tree94bbf809a7a449f310b2b706f430fb62ac829081
parent0cb6d8c5ad44453f34ba9434ead3f76256777044 (diff)
Use int not u_char for colours from options since they may have bit 8
set to mark them as 256-colour. Reported by Chris Johnson.
-rw-r--r--usr.bin/tmux/status.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/tmux/status.c b/usr.bin/tmux/status.c
index de2eaa2d445..e11eb6848f5 100644
--- a/usr.bin/tmux/status.c
+++ b/usr.bin/tmux/status.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: status.c,v 1.91 2012/04/23 22:23:14 nicm Exp $ */
+/* $OpenBSD: status.c,v 1.92 2012/04/29 07:33:41 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -81,7 +81,7 @@ status_redraw_get_left(struct client *c,
{
struct session *s = c->session;
char *left;
- u_char fg, bg, attr;
+ int fg, bg, attr;
size_t leftlen;
fg = options_get_number(&s->options, "status-left-fg");
@@ -111,7 +111,7 @@ status_redraw_get_right(struct client *c,
{
struct session *s = c->session;
char *right;
- u_char fg, bg, attr;
+ int fg, bg, attr;
size_t rightlen;
fg = options_get_number(&s->options, "status-right-fg");
@@ -683,7 +683,7 @@ status_print(
struct session *s = c->session;
const char *fmt;
char *text;
- u_char fg, bg, attr;
+ int fg, bg, attr;
fg = options_get_number(oo, "window-status-fg");
if (fg != 8)