We directly get the length of the secret from the g_variant and use it in a following g_strndup which ensures that the resulting string is terminated. This fixes reading secrets which were stored by system-config-printer. https://bugzilla.gnome.org/show_bug.cgi?id=740612