From f2ea7e539c9a22081e3159dcbca84f57f30724ca Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 10 Aug 2016 19:04:43 +0200 Subject: 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 --- common/util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'common/util.h') 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); -- cgit v1.2.3