Config: Fix UGLY mistake (lenght -> length, thanks chacha)

This commit is contained in:
Martin Duquesnoy 2010-08-12 19:57:00 +02:00
parent 5d9ad3e1db
commit dc2e571e5e
3 changed files with 6 additions and 6 deletions

View File

@ -219,7 +219,7 @@ conf_bar_section(void)
conf.selbar.bg = getcolor(fetch_opt_first(selbar, barbg, "bg").str);
conf.selbar.fg = fetch_opt_first(selbar, conf.colors.text, "fg").str;
conf.selbar.maxlenght = fetch_opt_first(selbar, "-1", "max_lenght").num;
conf.selbar.maxlength = fetch_opt_first(selbar, "-1", "max_length").num;
mouse = fetch_section(selbar, "mouse");

View File

@ -188,12 +188,12 @@ infobar_draw_selbar(int sc)
else if(sel && !infobar[sc].selbar->mapped)
barwin_map(infobar[sc].selbar);
if(conf.selbar.maxlenght >= 0 && sel)
if(conf.selbar.maxlength >= 0 && sel)
{
str = emalloc(conf.selbar.maxlenght + 4, sizeof(char));
strncpy(str, sel->title, conf.selbar.maxlenght);
str = emalloc(conf.selbar.maxlength + 4, sizeof(char));
strncpy(str, sel->title, conf.selbar.maxlength);
if(strlen(sel->title) > conf.selbar.maxlenght)
if(strlen(sel->title) > conf.selbar.maxlength)
strcat(str, "...");
}

View File

@ -414,7 +414,7 @@ typedef struct
{
char *fg;
uint bg;
int maxlenght;
int maxlength;
MouseBinding *mouse;
int nmouse;
} selbar;