2003-06-22 Marcus Brinkmann <marcus@g10code.de>

* data-mem.c (mem_write): Copy original buffer content.
This commit is contained in:
Marcus Brinkmann 2003-06-22 20:56:48 +00:00
parent 7b1bac188f
commit 83cc539b1d
3 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-06-22 Marcus Brinkmann <marcus@g10code.de>
* data-mem.c (mem_write): Copy original buffer content.
2003-06-22 Marcus Brinkmann <marcus@g10code.de>
* gpgme.h (gpgme_user_ids_release, gpgme_user_ids_append): Remove

View File

@ -66,6 +66,8 @@ mem_write (gpgme_data_t dh, const void *buffer, size_t size)
new_buffer = malloc (new_size);
if (!new_buffer)
return -1;
memcpy (new_buffer, dh->data.mem.orig_buffer, dh->data.mem.length);
dh->data.mem.buffer = new_buffer;
dh->data.mem.size = new_size;
}

View File

@ -63,7 +63,7 @@ extern "C" {
AM_PATH_GPGME macro) check that this header matches the installed
library. Warning: Do not edit the next line. configure will do
that for you! */
#define GPGME_VERSION "0.4.1"
#define GPGME_VERSION "0.4.2"
/* Some opaque data types used by GPGME. */