2002-09-02 Marcus Brinkmann <marcus@g10code.de>

* conversion.c (_gpgme_decode_c_string): Set DESTP before modifying DEST.
This commit is contained in:
Marcus Brinkmann 2002-09-01 23:29:55 +00:00
parent d55e88d0bc
commit c40f22a7d8
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2002-09-02 Marcus Brinkmann <marcus@g10code.de>
* conversion.c (_gpgme_decode_c_string): Set DESTP before modifying DEST.
* conversion.c (_gpgme_decode_c_string): Fix off by one error in last change.
* rungpg.c (_gpgme_append_gpg_args_from_signers): Move before
_gpgme_op_edit so its prototype is known early on.

View File

@ -62,6 +62,8 @@ _gpgme_decode_c_string (const char *src, char **destp)
if (!dest)
return mk_error (Out_Of_Core);
*destp = dest;
while (*src)
{
if (*src != '\\')
@ -130,7 +132,6 @@ _gpgme_decode_c_string (const char *src, char **destp)
}
}
*(dest++) = 0;
*destp = dest;
return 0;
}