common: New function try_make_printable_string.
authorWerner Koch <wk@gnupg.org>
Wed, 10 Aug 2016 17:04:43 +0000 (19:04 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 10 Aug 2016 17:53:53 +0000 (19:53 +0200)
commitf2ea7e539c9a22081e3159dcbca84f57f30724ca
tree4d7abfc34b04735580b231f53fd1db48ce6e531b
parenta6acf1f6b39c5a607f61f643a5d21309ba58685d
common: New function try_make_printable_string.

* common/stringhelp.c (sanitize_buffer): Remove.  Move code to ...
* common/miscellaneous.c (try_make_printable_string): new.
(make_printable_string): Call try_make_printable_string.

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