diff options
author | Werner Koch <[email protected]> | 2012-10-11 15:02:50 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2012-10-11 15:02:50 +0000 |
commit | e11e7fc5586613525035c3358e15ae24accb96ea (patch) | |
tree | 46e496deef00ae7f7f1785f640ba06a11afa933c /src/decrypt.c | |
parent | gpgme-tool: Change license from LPGLv2+ to GPLv3+ (diff) | |
download | gpgme-e11e7fc5586613525035c3358e15ae24accb96ea.tar.gz gpgme-e11e7fc5586613525035c3358e15ae24accb96ea.zip |
gpgme-tool: Use membuf functions to build up strings.
* src/gpgme-tool.c (clear_membuf, init_membuf, put_membuf)
(put_membuf_str, get_membuf, peek_membuf): Add membuf functions.
Take from GnuPG master's common/membuf.[ch] and patch for our use.
(result_xml_escape): Rewrite using new functions.
--
First counting, then allocating, and finally copying data is prone to
errors. We better use the membuf functions which make it much easier.
Diffstat (limited to 'src/decrypt.c')
0 files changed, 0 insertions, 0 deletions