aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-03-06 13:31:08 +0100
committerChristian Grothoff <christian@grothoff.org>2022-03-06 13:31:08 +0100
commit6fc48ff0681c195bf18d43d12513d03a306a096a (patch)
tree63bd72871777b2d3215c694e34ddd7af560dc0e9
parent1d14c5ad825ca05511c4c718c7adbd76a29f00e7 (diff)
downloadanastasis-gtk-6fc48ff0681c195bf18d43d12513d03a306a096a.tar.gz
anastasis-gtk-6fc48ff0681c195bf18d43d12513d03a306a096a.tar.bz2
anastasis-gtk-6fc48ff0681c195bf18d43d12513d03a306a096a.zip
fix #7187
-rw-r--r--src/anastasis/anastasis-gtk_handle-method-totp.c4
1 files 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
index 9c44a36..2b5f090 100644
--- 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,