gui: Don't compute string length unnecessarily.
authorAndre Noll <maan@systemlinux.org>
Sun, 3 Jun 2012 17:25:06 +0000 (19:25 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 23 Dec 2012 14:03:10 +0000 (15:03 +0100)
commitf78b535b0d7863152b7ca463b2b499485f4ea1a7
tree5c23d5f14df3eecb9928de66ecf47f6e1ba17d2c
parent6224f70d3ad09b7066e120447573e3271c5afe22
gui: Don't compute string length unnecessarily.

We already know the length because it was computed earlier and stored
in the ring buffer structure, so use this "cached" value instead where
possible.
gui.c