Allow formats in status options.

This commit is contained in:
Nicholas Marriott
2013-02-10 18:53:25 +00:00
parent 6ad2c5c40f
commit 6c53a1ed68
2 changed files with 21 additions and 12 deletions

View File

@ -251,10 +251,11 @@ format_expand(struct format_tree *ft, const char *fmt)
continue;
}
}
while (len - off < 2) {
while (len - off < 3) {
buf = xrealloc(buf, 2, len);
len *= 2;
}
buf[off++] = '#';
buf[off++] = ch;
continue;
}