Fix a bug with the calculation of the remaining length
Fix a bug with the calculation of the remaining length

If the result of the string format was longer than the remaining length,
the returned remaining length would be negative, which would make very
strange things happen.

varnit/lager