mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
dirmngr: Replace stpcpy chains by strconcat.
* dirmngr/certcache.c (find_cert_bysn): Use strconcat. (find_cert_bysubject): Ditto. * dirmngr/http.c (store_header): Ditto. * dirmngr/ldap.c (make_url): Ditto. * dirmngr/server.c (get_cert_local_ski): Ditto. (do_get_cert_local): Use xstrconcat. -- Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
7a666ccb44
commit
aef60abe6a
4 changed files with 14 additions and 31 deletions
|
@ -2150,11 +2150,10 @@ store_header (http_t hd, char *line)
|
|||
if (h)
|
||||
{
|
||||
/* We have already seen a line with that name. Thus we assume
|
||||
it is a comma separated list and merge them. */
|
||||
p = xtrymalloc (strlen (h->value) + 1 + strlen (value)+ 1);
|
||||
* it is a comma separated list and merge them. */
|
||||
p = strconcat (h->value, ",", value, NULL);
|
||||
if (!p)
|
||||
return gpg_err_code_from_syserror ();
|
||||
strcpy (stpcpy (stpcpy (p, h->value), ","), value);
|
||||
xfree (h->value);
|
||||
h->value = p;
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue