Fix g10/trust.c.

* g10/trust.c (register_trusted_keyid, register_trusted_key)
(update_ownertrust): Call functions with tdb_.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
common: Fix recent commit 55656208.

* common/membuf.c (get_membuf_shrink): Fix use of LEN.
--

Oops, what a stupid bug.