aboutsummaryrefslogtreecommitdiff
path: root/src/anastasis/anastasis-gtk_handle-method-totp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/anastasis/anastasis-gtk_handle-method-totp.c')
-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,