From bc29082f9d904b1996cb269d70e474b91cc608ef Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sat, 23 Jan 2021 12:34:30 -0500 Subject: Remove use of "%n" to appease de Raadt Sure, it was completely unnecessary, but I resent being told how to use snprintf. https://cvsweb.openbsd.org/src/lib/libc/stdio/vfprintf.c?rev=1.79&content-type=text/x-cvsweb-markup --- buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buffer.c b/buffer.c index ef175b8..41a84cc 100644 --- a/buffer.c +++ b/buffer.c @@ -185,7 +185,7 @@ static int flow(struct Lines *hard, int cols, const struct Line *soft) { if (!line->str) err(EX_OSERR, "malloc"); struct Cat cat = { line->str, cap, 0 }; - catf(&cat, "%*s%n", align, "", &width); + catf(&cat, "%*s", (width = align), ""); styleCat(&cat, wrapStyle); str = &line->str[cat.len]; style = wrapStyle; -- cgit 1.4.0 tch'>twitch IRC client
summary refs log tree commit diff
path: root/config.c (unfollow)
Commit message (Expand)Author
2020-02-10Split on <> in colorMentionsJune McEnroe
2020-02-10Replace alignment tabs with spaces in bufferListJune McEnroe
2020-02-10Add C-o as alias of M-/June McEnroe
2020-02-10Only automatically switch to expected joinsJune McEnroe
2020-02-10Delegate to commandPrivmsg from commandMsgJune McEnroe
2020-02-10Synthesize a QUIT message to handle on exitJune McEnroe
2020-02-10Factor out XDG base directory codeJune McEnroe
2020-02-10Leave a blank line after loaded bufferJune McEnroe
2020-02-10Add -s to save and load buffersJune McEnroe
2020-02-10Show heat and other unread in titleJune McEnroe
2020-02-10Eliminate array in hashJune McEnroe
2020-02-10Add -HJune McEnroe
2020-02-10Hash to colors in the range 2-75June McEnroe
2020-02-10Improve color fudgingJune McEnroe
2020-02-10Support all 99 IRC colorsJune McEnroe
2020-02-10Avoid coloring mentions if there are control codesJune McEnroe
2020-02-10Recalculate unreadLines on reflowJune McEnroe
2020-02-10Only make windows hotterJune McEnroe
2020-02-10Always increase unreadLinesJune McEnroe
2020-02-10Move scroll marker on resizeJune McEnroe
2020-02-10Update line count for words longer than linesJune McEnroe
2020-02-10Simplify mark, heat, unread trackingJune McEnroe
2020-02-10Update prompt when own nick changesJune McEnroe
2020-02-10Match URLs surrounded by parenthesesJune McEnroe
2020-02-10Fix M-a so it properly cycles back to where it startedJune McEnroe
2020-02-09Add M-lJune McEnroe
2020-02-09Add /whoisJune McEnroe
2020-02-09Add /msgJune McEnroe