Use asprintf function from libgpg-error.
* configure.ac: Require libgpg-error 1.17. (vasprintf): Remove ac_replace. * src/assuan-defs.h [!HAVE_VASPRINTF]: Remove replace wrapper. * src/assuan-logging.c (_assuan_log_control_channel): (_assuan_log_control_channel): s/asprintf/gpgrt_asprintf/. * src/debug.c (_assuan_debug): s/vasprintf/gpgrt_vasprintf/. (_assuan_debug_begin): Ditto. (_assuan_debug_add): Ditto. s/asprintf/gpgrt_asprintf/.
We plan to move more code into libgpg-error/gpgrt anyway thus this is
a good start which also fixes this bug:
- GnuPG-bug-id: T1477
- Signed-off-by: Werner Koch <wk@gnupg.org>