commit 6fc48ff0681c195bf18d43d12513d03a306a096a
parent 1d14c5ad825ca05511c4c718c7adbd76a29f00e7
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 6 Mar 2022 13:31:08 +0100
fix #7187
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/anastasis/anastasis-gtk_handle-method-totp.c b/src/anastasis/anastasis-gtk_handle-method-totp.c
@@ -167,8 +167,7 @@ base32enc (const void *val,
vbit -= 5;
}
GNUNET_assert (0 == vbit);
- if (wpos < val_size)
- enc[wpos] = '\0';
+ enc[wpos] = '\0';
}
@@ -210,6 +209,7 @@ refresh_totp (GtkBuilder *builder)
pb = AG_setup_qrcode (GTK_WIDGET (img),
uri,
strlen (uri));
+ GNUNET_free (uri);
if (NULL != pb)
{
gtk_image_set_from_pixbuf (img,