core: Replace all calls to *sprintf by gpgrt_*sprintf.
authorWerner Koch <wk@gnupg.org>
Thu, 2 Feb 2017 11:35:59 +0000 (12:35 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 2 Feb 2017 11:35:59 +0000 (12:35 +0100)
commit15050ce5fce4ed815503db7c029abb38d08970d6
treed0c58db0e44d9f94c2655845482027b678918819
parent563420a88f8a4f561a2faea4d2b4a1c58b375fd8
core: Replace all calls to *sprintf by gpgrt_*sprintf.

* configure.ac (vasprintf): Remove check.
* src/vasprintf.c: Remove file.
* src/util.h (vasprintf, asprintf): Remove prototypes.  Replace all
calls to vasprintf and asprintf by gpgrt_vasprintf or gpgrt_asprintf.
Also take care to use gpgrt_free on the returned value.
* src/w32-util.c (_gpgme_get_gpgconf_path): Replace a gpgrt_asprintf
by _gpgme_strconcat.
(snprintf): New macro to use gpgrt_snprintf instead of the system's
standard snprintf.

Signed-off-by: Werner Koch <wk@gnupg.org>
13 files changed:
configure.ac
src/debug.c
src/engine-assuan.c
src/engine-g13.c
src/engine-gpg.c
src/engine-gpgsm.c
src/engine-uiserver.c
src/util.h
src/vasprintf.c [deleted file]
src/vfs-create.c
src/vfs-mount.c
src/w32-io.c
src/w32-util.c