diff options
author | Werner Koch <[email protected]> | 2016-08-10 17:04:43 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-08-10 17:53:53 +0000 |
commit | f2ea7e539c9a22081e3159dcbca84f57f30724ca (patch) | |
tree | 4d7abfc34b04735580b231f53fd1db48ce6e531b /common/util.h | |
parent | tests: Fix distcheck. (diff) | |
download | gnupg-f2ea7e539c9a22081e3159dcbca84f57f30724ca.tar.gz gnupg-f2ea7e539c9a22081e3159dcbca84f57f30724ca.zip |
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 <[email protected]>
Diffstat (limited to 'common/util.h')
-rw-r--r-- | common/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/util.h b/common/util.h index 3f2d1746e..6680414d7 100644 --- a/common/util.h +++ b/common/util.h @@ -287,6 +287,7 @@ void print_utf8_buffer2 (estream_t fp, const void *p, size_t n, int delim); void print_utf8_buffer (estream_t fp, const void *p, size_t n); void print_hexstring (FILE *fp, const void *buffer, size_t length, int reserved); +char *try_make_printable_string (const void *p, size_t n, int delim); char *make_printable_string (const void *p, size_t n, int delim); int is_file_compressed (const char *s, int *ret_rc); |