| Date: Sun, 21 Jan 2018 21:14:39 +0100
Remove invalid leftover variable in uistatus()
Diffstat:
M ui_ti.c | 2 +-
M ui_txt.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
--- |
| @@ -143,7 +143,7 @@ uistatus(char *fmt, ...)
putp(tparm(enter_standout_mode));
va_start(ap, fmt);
- n = vsnprintf(bufout + n, sizeof(bufout) - n, fmt, ap);
+ n = vsnprintf(bufout, sizeof(bufout), fmt, ap);
va_end(ap);
if (n < sizeof(bufout)-1) { |
| @@ -193,7 +193,7 @@ printuri(Item *item, size_t i)
item->host, item->type, item->selector, item->port);
break;
}
-
+
if (n >= sizeof(bufout))
bufout[sizeof(bufout)-1] = '\0';
|