vi: use vsnprintf to format status line
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 1 Apr 2019 13:41:05 +0000 (15:41 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 1 Apr 2019 13:41:05 +0000 (15:41 +0200)
commit6ce60b9cca55c908de3747f1224b2e8aabb557bf
tree85fa5d63b43920bf7d046b2074a366ea7653eb7e
parentd4f2e7ff71f253ee993e11cf7ce6a1244dec52e0
vi: use vsnprintf to format status line

This is the last use of "vsprintf" in busybox:

function                                             old     new   delta
status_line_bold                                      72      77      +5
status_line                                           40      45      +5
vsprintf                                              23       -     -23
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 2/0 up/down: 10/-23)            Total: -13 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
editors/vi.c