change bar colors from char[10] to *char

This commit removes has_* booleans from bar color struct. It also
generalizes of functions in commands/bar/colors.c.
This commit is contained in:
D.B 2016-11-02 21:07:04 +01:00
parent ad4d21d60b
commit 58eb7ac19f
5 changed files with 152 additions and 215 deletions

View file

@ -255,6 +255,7 @@ struct cmd_results *add_color(const char *name, char *buffer, const char *color)
buffer[7] = 'f';
buffer[8] = 'f';
}
buffer[9] = '\0';
return NULL;
}