]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Fix first line length in buf_append_base64()
authorDavid Woodhouse <dwmw2@infradead.org>
Wed, 19 May 2021 08:32:41 +0000 (09:32 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Wed, 19 May 2021 08:32:41 +0000 (09:32 +0100)
commit3b88d27e80dfc8482a41d1f59e2b850256582bc4
tree03d63698bb82d1d91abe01b58228f5383a7df595
parent51ff522c91defacb0aecbea77fef56ff61dfac03
Fix first line length in buf_append_base64()

We need to add four (for the characters we're about to append) *after*
checking against line_len and resetting ll to zero. Otherwise the first
line thinks it starts at 4 while the others start at 0.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
textbuf.c