Home GnuPG

Use asprintf function from libgpg-error.
7279c3ce9283Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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>

Details

Provenance
wernerAuthored on Nov 3 2015, 3:26 PM
Parents
rAdda9c84bc673: Tests: Cope with broken HTTP servers.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rA7279c3ce9283: Use asprintf function from libgpg-error. (authored by Werner Koch <wk@gnupg.org>).Nov 3 2015, 3:26 PM