2002-09-02 Marcus Brinkmann <marcus@g10code.de>
* conversion.c (_gpgme_decode_c_string): Set DESTP before modifying DEST.
This commit is contained in:
parent
d55e88d0bc
commit
c40f22a7d8
@ -1,5 +1,7 @@
|
|||||||
2002-09-02 Marcus Brinkmann <marcus@g10code.de>
|
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.
|
* conversion.c (_gpgme_decode_c_string): Fix off by one error in last change.
|
||||||
* rungpg.c (_gpgme_append_gpg_args_from_signers): Move before
|
* rungpg.c (_gpgme_append_gpg_args_from_signers): Move before
|
||||||
_gpgme_op_edit so its prototype is known early on.
|
_gpgme_op_edit so its prototype is known early on.
|
||||||
|
@ -62,6 +62,8 @@ _gpgme_decode_c_string (const char *src, char **destp)
|
|||||||
if (!dest)
|
if (!dest)
|
||||||
return mk_error (Out_Of_Core);
|
return mk_error (Out_Of_Core);
|
||||||
|
|
||||||
|
*destp = dest;
|
||||||
|
|
||||||
while (*src)
|
while (*src)
|
||||||
{
|
{
|
||||||
if (*src != '\\')
|
if (*src != '\\')
|
||||||
@ -130,7 +132,6 @@ _gpgme_decode_c_string (const char *src, char **destp)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
*(dest++) = 0;
|
*(dest++) = 0;
|
||||||
*destp = dest;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user