Skip to content

Commit

Permalink
Sync OpenBSD patchset 1103:
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Tiago Cunha committed May 3, 2012
1 parent d090786 commit e45dc6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions status.c
Expand Up @@ -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");
Expand Down Expand Up @@ -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");
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit e45dc6a

Please sign in to comment.