diff options
author | Drew DeVault <sir@cmpwn.com> | 2020-03-19 18:33:42 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-03-19 18:33:42 -0400 |
commit | 696f4ff084c2c7599f36f7e2d6fbdc6c242c9de8 (patch) | |
tree | 51f5eeb92d653863a83423c96e94eb15d56816c2 /widgets | |
parent | 8372e9e39f8f801cabf4f258f088bc094f331a4c (diff) | |
download | aerc-696f4ff084c2c7599f36f7e2d6fbdc6c242c9de8.tar.gz |
msgviewer: do not interpret header as format string
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/msgviewer.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go index 9c759724..35fc4b6e 100644 --- a/widgets/msgviewer.go +++ b/widgets/msgviewer.go @@ -702,8 +702,8 @@ func (hv *HeaderView) Draw(ctx *ui.Context) { hstyle = tcell.StyleDefault.Bold(true) } ctx.Fill(0, 0, ctx.Width(), ctx.Height(), ' ', vstyle) - ctx.Printf(0, 0, hstyle, name) - ctx.Printf(size, 0, vstyle, value) + ctx.Printf(0, 0, hstyle, "%s", name) + ctx.Printf(size, 0, vstyle, "%s", value) } func (hv *HeaderView) Invalidate() { |