mirror of
https://github.com/0intro/wmii
synced 2024-11-22 05:42:05 +03:00
Don't allow extra content after colors ctl commands.
This commit is contained in:
parent
366420f459
commit
05053cb995
@ -906,15 +906,15 @@ msg_nudge(View *v, IxpMsg *m) {
|
||||
|
||||
void
|
||||
msg_parsecolors(IxpMsg *m, CTuple *col) {
|
||||
CTuple tpl;
|
||||
static char Ebad[] = "bad color string";
|
||||
char n;
|
||||
|
||||
n = loadcolor(col, m->pos, m->end);
|
||||
if(n == 0)
|
||||
error(Ebad);
|
||||
|
||||
n = loadcolor(&tpl, m->pos, m->end);
|
||||
m->pos += n;
|
||||
msg_eatrunes(m, isspacerune, true);
|
||||
if(n == 0 || msg_getword(m, nil))
|
||||
error(Ebad);
|
||||
*col = tpl;
|
||||
}
|
||||
|
||||
char*
|
||||
|
Loading…
Reference in New Issue
Block a user