common: Fix off-by-one access in the new format_text.
authorWerner Koch <wk@gnupg.org>
Thu, 26 Nov 2015 17:04:54 +0000 (18:04 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 26 Nov 2015 17:05:27 +0000 (18:05 +0100)
commit61941a984964308b09c7fc1b3438fb99d0b3c917
treedd50c8351921c103b3d8df04037f359ea42ef737
parentd226e67856e7197c581dcd2cef0f1e687bee0ac9
common: Fix off-by-one access in the new format_text.

* common/stringhelp.c (format_text): Use existsing fucntion to trim
trailing spaces.  Fix off-by-one access.

Signed-off-by: Werner Koch <wk@gnupg.org>
common/stringhelp.c
common/stringhelp.h