1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

common: Simplify format_text.

* common/stringhelp.c (format_text): Don't allow IN_PLACE formatting.
* common/stringhelp.h: Change the API with no IN_PLACE.
* common/t-stringhelp.c (test_format_text): Follow the change.
* g10/gpgcompose.c (show_help): Likewise.
* g10/tofu.c (format_conflict_msg_part1, ask_about_binding)
(show_statistics, show_warning): Likewise.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2017-04-12 14:47:30 +09:00
parent 7f9032d4a8
commit 7b4edf14bb
5 changed files with 12 additions and 13 deletions

View file

@ -305,7 +305,7 @@ show_help (struct option options[])
if (! option)
space = 72;
formatted = format_text (tmp, 0, space, space + 4);
formatted = format_text (tmp, space, space + 4);
if (tmp != help)
xfree (tmp);